2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Load filters before creating session on log in.

This commit is contained in:
John Preston
2020-06-30 11:02:44 +04:00
parent 90af3d295b
commit 87eaab15b5
6 changed files with 83 additions and 33 deletions

View File

@@ -131,8 +131,14 @@ uint64 Account::willHaveSessionUniqueId(MTP::Config *config) const {
| (config && config->isTestMode() ? 0x0100'0000'0000'0000ULL : 0ULL);
}
void Account::createSession(const MTPUser &user) {
createSession(user, QByteArray(), 0, std::make_unique<SessionSettings>());
void Account::createSession(
const MTPUser &user,
std::unique_ptr<SessionSettings> settings) {
createSession(
user,
QByteArray(),
0,
settings ? std::move(settings) : std::make_unique<SessionSettings>());
}
void Account::createSession(