2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Fixed online status stuck when switching between accounts one more time.

The first attempt to fix this bug is here: 8171ed6c12.
It caused crash so it was reverted here: 2ef47222f4.
This commit is contained in:
23rd
2020-07-15 18:37:25 +03:00
parent 65e2bbee3e
commit 972bbbce6a
2 changed files with 20 additions and 0 deletions

View File

@@ -157,6 +157,7 @@ Session::Session(
// Can be called only right before ~Session.
void Session::finishLogout() {
updates().updateOnline();
unlockTerms();
data().clear();
data().clearLocalStorage();