mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 06:55:58 +00:00
Fixed online status stuck when switching between accounts.
This commit is contained in:
@@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|||||||
*/
|
*/
|
||||||
#include "window/window_controller.h"
|
#include "window/window_controller.h"
|
||||||
|
|
||||||
|
#include "api/api_updates.h"
|
||||||
#include "core/application.h"
|
#include "core/application.h"
|
||||||
#include "core/click_handler_types.h"
|
#include "core/click_handler_types.h"
|
||||||
#include "main/main_account.h"
|
#include "main/main_account.h"
|
||||||
@@ -83,6 +84,9 @@ void Controller::showAccount(not_null<Main::Account*> account) {
|
|||||||
setupIntro();
|
setupIntro();
|
||||||
_widget.updateGlobalMenu();
|
_widget.updateGlobalMenu();
|
||||||
}
|
}
|
||||||
|
if (was) {
|
||||||
|
was->session().updates().updateOnline();
|
||||||
|
}
|
||||||
}, _accountLifetime);
|
}, _accountLifetime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user