Fix build on Linux.
This commit is contained in:
parent
325840703e
commit
9703f7460a
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue