mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-26 18:41:01 +00:00
Fix local caching.
Regression was introduced in 9cf4cf6dca
.
Fixes #6377.
This commit is contained in:
parent
02b65a42f7
commit
c3944d95b4
@ -106,8 +106,7 @@ void Account::destroySession() {
|
|||||||
if (!sessionExists()) {
|
if (!sessionExists()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
session().data().clearLocalStorage();
|
session().data().clear();
|
||||||
|
|
||||||
_mtp->clearGlobalHandlers();
|
_mtp->clearGlobalHandlers();
|
||||||
|
|
||||||
_sessionValue = nullptr;
|
_sessionValue = nullptr;
|
||||||
@ -395,6 +394,9 @@ void Account::loggedOut() {
|
|||||||
window->tempDirDelete(Local::ClearManagerAll);
|
window->tempDirDelete(Local::ClearManagerAll);
|
||||||
window->setupIntro();
|
window->setupIntro();
|
||||||
}
|
}
|
||||||
|
if (sessionExists()) {
|
||||||
|
session().data().clearLocalStorage();
|
||||||
|
}
|
||||||
destroySession();
|
destroySession();
|
||||||
Local::reset();
|
Local::reset();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user