2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Fix resetting all sessions.

This commit is contained in:
John Preston
2020-12-15 18:23:41 +04:00
parent 6b5c422e95
commit 00fac70140
2 changed files with 15 additions and 8 deletions

View File

@@ -292,7 +292,7 @@ void SessionsContent::terminateAll() {
auto callback = [=] {
const auto reset = crl::guard(weak, [=] {
_authorizations->cancelCurrentRequest();
shortPollSessions();
_authorizations->reload();
});
_authorizations->requestTerminate(
[=](const MTPBool &result) { reset(); },