mirror of https://github.com/procxx/kepka.git
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() {
|
void Application::unlockPasscode() {
|
||||||
clearPasscodeLock();
|
clearPasscodeLock();
|
||||||
|
if (!activeAccount().mtp()) {
|
||||||
|
// We unlocked initial passcode, so we just start mtproto.
|
||||||
|
activeAccount().startMtp();
|
||||||
|
}
|
||||||
if (_window) {
|
if (_window) {
|
||||||
_window->clearPasscodeLock();
|
_window->clearPasscodeLock();
|
||||||
}
|
}
|
||||||
|
|
|
@ -368,8 +368,6 @@ void Account::logOut() {
|
||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
// We log out because we've forgotten passcode.
|
// We log out because we've forgotten passcode.
|
||||||
// So we just start mtproto from scratch.
|
|
||||||
startMtp();
|
|
||||||
loggedOut();
|
loggedOut();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue