2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Support logout of a secondary account.

This commit is contained in:
John Preston
2020-06-16 13:40:43 +04:00
parent 5e045ec02c
commit bc144377c0
18 changed files with 189 additions and 81 deletions

View File

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