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:
@@ -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); });
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user