mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Fix local storage clearing on logout.
This commit is contained in:
@@ -151,6 +151,13 @@ Session::Session(
|
||||
_api->requestNotifySettings(MTP_inputNotifyBroadcasts());
|
||||
}
|
||||
|
||||
// Can be called only right before ~Session.
|
||||
void Session::finishLogout() {
|
||||
unlockTerms();
|
||||
data().clear();
|
||||
data().clearLocalStorage();
|
||||
}
|
||||
|
||||
Session::~Session() {
|
||||
unlockTerms();
|
||||
data().clear();
|
||||
|
Reference in New Issue
Block a user