mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
One Window::Notifications system for all sessions.
This commit is contained in:
@@ -150,11 +150,8 @@ auto GenerateCodes() {
|
||||
SessionController *window) {
|
||||
crl::on_main(&Core::App(), [=] {
|
||||
const auto &list = Core::App().domain().accounts();
|
||||
const auto j = list.find(i);
|
||||
if (j != list.end() && !Core::App().locked()) {
|
||||
if (&Core::App().activeAccount() != j->second.get()) {
|
||||
Core::App().domain().activate(i);
|
||||
}
|
||||
if (i < list.size()) {
|
||||
Core::App().domain().activate(list[i].account.get());
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user