diff --git a/Telegram/SourceFiles/platform/mac/main_window_mac.mm b/Telegram/SourceFiles/platform/mac/main_window_mac.mm index f13059fdea..95341c6790 100644 --- a/Telegram/SourceFiles/platform/mac/main_window_mac.mm +++ b/Telegram/SourceFiles/platform/mac/main_window_mac.mm @@ -17,7 +17,8 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "history/history.h" #include "history/history_widget.h" #include "history/history_inner_widget.h" -#include "main/main_account.h" // Account::sessionChanges. +#include "main/main_account.h" +#include "main/main_accounts.h" // Accounts::activeSessionValue #include "media/player/media_player_instance.h" #include "media/audio/media_audio.h" #include "storage/localstorage.h" @@ -477,7 +478,7 @@ void MainWindow::initTouchBar() { return; } - account().sessionValue( + Core::App().accounts().activeSessionValue( ) | rpl::start_with_next([=](Main::Session *session) { if (session) { // We need only common pinned dialogs. diff --git a/Telegram/SourceFiles/storage/storage_account.h b/Telegram/SourceFiles/storage/storage_account.h index c46afa0e1e..25bd282c35 100644 --- a/Telegram/SourceFiles/storage/storage_account.h +++ b/Telegram/SourceFiles/storage/storage_account.h @@ -55,8 +55,8 @@ public: ~Account(); [[nodiscard]] StartResult legacyStart(const QByteArray &passcode); - [[nodiscard]] void start(MTP::AuthKeyPtr localKey); - [[nodiscard]] void startAdded(MTP::AuthKeyPtr localKey); + void start(MTP::AuthKeyPtr localKey); + void startAdded(MTP::AuthKeyPtr localKey); [[nodiscard]] int oldMapVersion() const { return _oldMapVersion; }