2
0
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:
John Preston
2020-06-19 16:59:31 +04:00
parent 83538675ce
commit 997913be25
28 changed files with 578 additions and 297 deletions

View File

@@ -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());
}
});
});