2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Support logout of a secondary account.

This commit is contained in:
John Preston
2020-06-16 13:40:43 +04:00
parent 5e045ec02c
commit bc144377c0
18 changed files with 189 additions and 81 deletions

View File

@@ -1722,7 +1722,7 @@ void Updates::feedUpdate(const MTPUpdate &update) {
Api::EntitiesFromMTP(&session(), d.ventities().v)
};
if (IsForceLogoutNotification(d)) {
Core::App().forceLogOut(text);
Core::App().forceLogOut(&session().account(), text);
} else if (d.is_popup()) {
const auto &windows = session().windows();
if (!windows.empty()) {