mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 16:05:57 +00:00
Add AUTH_KEY_DROP_ service notification support.
Also move logout code to Messenger.
This commit is contained in:
@@ -314,7 +314,7 @@ bool AuthSession::validateSelf(const MTPUser &user) {
|
||||
return false;
|
||||
} else if (user.c_user().vid.v != userId()) {
|
||||
LOG(("Auth Error: wrong self user received."));
|
||||
App::logOutDelayed();
|
||||
crl::on_main(this, [] { Messenger::Instance().logOut(); });
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user