mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix local caching.
Regression was introduced in 9cf4cf6dca.
Fixes #6377.
This commit is contained in:
@@ -106,8 +106,7 @@ void Account::destroySession() {
|
||||
if (!sessionExists()) {
|
||||
return;
|
||||
}
|
||||
session().data().clearLocalStorage();
|
||||
|
||||
session().data().clear();
|
||||
_mtp->clearGlobalHandlers();
|
||||
|
||||
_sessionValue = nullptr;
|
||||
@@ -395,6 +394,9 @@ void Account::loggedOut() {
|
||||
window->tempDirDelete(Local::ClearManagerAll);
|
||||
window->setupIntro();
|
||||
}
|
||||
if (sessionExists()) {
|
||||
session().data().clearLocalStorage();
|
||||
}
|
||||
destroySession();
|
||||
Local::reset();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user