mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-01 17:57:51 +00:00
Support logout of a secondary account.
This commit is contained in:
@@ -1118,8 +1118,7 @@ void Session::setupUserIsContactViewer() {
|
||||
Session::~Session() {
|
||||
// Optimization: clear notifications before destroying items.
|
||||
_session->notifications().clearAllFast();
|
||||
|
||||
clear();
|
||||
clearLocalStorage();
|
||||
}
|
||||
|
||||
template <typename Method>
|
||||
@@ -3840,6 +3839,8 @@ void Session::clearLocalStorage() {
|
||||
|
||||
_cache->close();
|
||||
_cache->clear();
|
||||
_bigFileCache->close();
|
||||
_bigFileCache->clear();
|
||||
}
|
||||
|
||||
} // namespace Data
|
||||
|
||||
Reference in New Issue
Block a user