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

Cache topPeers locally.

This commit is contained in:
John Preston
2024-04-11 17:46:19 +04:00
parent c11f4efc5c
commit 4cdd939028
9 changed files with 280 additions and 14 deletions

View File

@@ -53,6 +53,7 @@ Account::Account(not_null<Domain*> domain, const QString &dataName, int index)
Account::~Account() {
if (const auto session = maybeSession()) {
session->saveSettingsNowIfNeeded();
_local->writeSearchSuggestionsIfNeeded();
}
destroySession(DestroyReason::Quitting);
}