mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-11 01:10:13 +00:00
Fix crash in local passcode reset.
This commit is contained in:
parent
1139a59818
commit
3f041545bf
@ -583,6 +583,10 @@ void Application::lockByPasscode() {
|
||||
|
||||
void Application::unlockPasscode() {
|
||||
clearPasscodeLock();
|
||||
if (!activeAccount().mtp()) {
|
||||
// We unlocked initial passcode, so we just start mtproto.
|
||||
activeAccount().startMtp();
|
||||
}
|
||||
if (_window) {
|
||||
_window->clearPasscodeLock();
|
||||
}
|
||||
|
@ -368,8 +368,6 @@ void Account::logOut() {
|
||||
}));
|
||||
} else {
|
||||
// We log out because we've forgotten passcode.
|
||||
// So we just start mtproto from scratch.
|
||||
startMtp();
|
||||
loggedOut();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user