2
0
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:
John Preston
2020-06-29 21:34:08 +04:00
parent 1a07a388d0
commit c777f51427
4 changed files with 79 additions and 5 deletions

View File

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