From a539fad3e2fcfb3835ea641eadc5f64ae7892157 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 20 Aug 2019 16:03:21 +0300 Subject: [PATCH] Version 1.8.2: Fix passcode unlock. --- Telegram/SourceFiles/mainwindow.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Telegram/SourceFiles/mainwindow.cpp b/Telegram/SourceFiles/mainwindow.cpp index 8ada1e70da..1dbb4594ca 100644 --- a/Telegram/SourceFiles/mainwindow.cpp +++ b/Telegram/SourceFiles/mainwindow.cpp @@ -199,13 +199,10 @@ void MainWindow::clearPasscodeLock() { } else if (_main) { _main->showAnimated(bg, true); Core::App().checkStartUrl(); + } else if (account().sessionExists()) { + setupMain(); } else { - account().startMtp(); - if (account().sessionExists()) { - setupMain(); - } else { - setupIntro(); - } + setupIntro(); } }