Fix build on Linux.

This commit is contained in:
John Preston 2020-06-26 12:27:54 +04:00
parent 325840703e
commit 9703f7460a
3 changed files with 5 additions and 2 deletions

View File

@ -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"

View File

@ -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);
}
}

View File

@ -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();
}