mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix new settings saving.
This commit is contained in:
@@ -824,7 +824,11 @@ std::unique_ptr<Main::SessionSettings> Account::readSessionSettings() {
|
||||
_readingUserSettings = false;
|
||||
LOG(("App Info: encrypted user settings read."));
|
||||
|
||||
return applyReadContext(std::move(context));
|
||||
auto result = applyReadContext(std::move(context));
|
||||
if (context.legacyRead) {
|
||||
writeSessionSettings(result.get());
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
std::unique_ptr<Main::SessionSettings> Account::applyReadContext(
|
||||
|
Reference in New Issue
Block a user