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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user