2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Rename AuthSession to Main::Session.

This commit is contained in:
John Preston
2019-07-24 13:45:24 +02:00
parent 06982fdf04
commit ff44094ded
201 changed files with 543 additions and 477 deletions

View File

@@ -16,7 +16,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "storage/localstorage.h"
#include "platform/platform_file_utilities.h"
#include "mtproto/connection.h" // for MTP::kAckSendWaiting
#include "auth_session.h"
#include "main/main_session.h"
#include "apiwrap.h"
#include "core/crash_reports.h"
#include "base/bytes.h"
@@ -171,7 +171,7 @@ FileLoader::FileLoader(
Expects(!_filename.isEmpty() || (_size <= Storage::kMaxFileInMemory));
}
AuthSession &FileLoader::session() const {
Main::Session &FileLoader::session() const {
return _downloader->api().session();
}
@@ -494,7 +494,7 @@ void FileLoader::cancel(bool fail) {
_file.setFileName(_filename);
}
// Current cancel() call could be made from ~AuthSession().
// Current cancel() call could be made from ~Main::Session().
crl::on_main(sessionGuard, [=] { LoadNextFromQueue(queue); });
}