diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp index c1bd15985f..f3dd3236ce 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -16,6 +16,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "history/history_widget.h" #include "history/history_inner_widget.h" #include "main/main_account.h" // Account::sessionChanges. +#include "main/main_session.h" #include "mainwindow.h" #include "core/application.h" #include "core/sandbox.h" diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index df70df966d..a478847a7a 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -571,7 +571,7 @@ void Manager::Private::showNotification( i = _notifications.find(key); if (i != _notifications.cend()) { i->second.remove(msgId); - if (i->empty()) { + if (i->second.empty()) { _notifications.erase(i); } } diff --git a/Telegram/SourceFiles/storage/storage_domain.cpp b/Telegram/SourceFiles/storage/storage_domain.cpp index 9a74ea8eb8..9a037a4345 100644 --- a/Telegram/SourceFiles/storage/storage_domain.cpp +++ b/Telegram/SourceFiles/storage/storage_domain.cpp @@ -87,7 +87,9 @@ void Domain::startWithSingleAccount( generateLocalKey(); account->start(account->prepareToStart(_localKey)); } - _owner->accountAddedInStorage({ .account = std::move(account) }); + _owner->accountAddedInStorage(Main::Domain::AccountWithIndex{ + .account = std::move(account) + }); writeAccounts(); }