Fixed online status stuck when switching between accounts.

This commit is contained in:
23rd 2020-06-25 14:54:14 +03:00
parent 5d6a494934
commit 8171ed6c12
1 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "window/window_controller.h"
#include "api/api_updates.h"
#include "core/application.h"
#include "core/click_handler_types.h"
#include "main/main_account.h"
@ -83,6 +84,9 @@ void Controller::showAccount(not_null<Main::Account*> account) {
setupIntro();
_widget.updateGlobalMenu();
}
if (was) {
was->session().updates().updateOnline();
}
}, _accountLifetime);
}