mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Fix crash in local passcode reset.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user