mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-04-20 06:06:39 +00:00
Fixed online status stuck when switching between accounts.
This commit is contained in:
parent
5d6a494934
commit
8171ed6c12
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user