From 8171ed6c122e07249ee8af4d36045d075a57abd9 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Thu, 25 Jun 2020 14:54:14 +0300 Subject: [PATCH] Fixed online status stuck when switching between accounts. --- Telegram/SourceFiles/window/window_controller.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/window/window_controller.cpp b/Telegram/SourceFiles/window/window_controller.cpp index 71abb70825..7ea10b35aa 100644 --- a/Telegram/SourceFiles/window/window_controller.cpp +++ b/Telegram/SourceFiles/window/window_controller.cpp @@ -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 account) { setupIntro(); _widget.updateGlobalMenu(); } + if (was) { + was->session().updates().updateOnline(); + } }, _accountLifetime); }