mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Fix local storage clearing on logout.
This commit is contained in:
@@ -1063,9 +1063,7 @@ void Session::setupUserIsContactViewer() {
|
||||
}, _lifetime);
|
||||
}
|
||||
|
||||
Session::~Session() {
|
||||
clearLocalStorage();
|
||||
}
|
||||
Session::~Session() = default;
|
||||
|
||||
template <typename Method>
|
||||
void Session::enumerateItemViews(
|
||||
@@ -3786,8 +3784,6 @@ int32 Session::wallpapersHash() const {
|
||||
}
|
||||
|
||||
void Session::clearLocalStorage() {
|
||||
clear();
|
||||
|
||||
_cache->close();
|
||||
_cache->clear();
|
||||
_bigFileCache->close();
|
||||
|
Reference in New Issue
Block a user