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