From f5fdcc3af0a23fd671151a587b19c2a8eb4945a5 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 12 Feb 2020 19:42:59 +0400 Subject: [PATCH] Enable secondary QR code login by default. --- Telegram/SourceFiles/intro/intro_phone.cpp | 2 +- Telegram/SourceFiles/intro/intro_start.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/intro/intro_phone.cpp b/Telegram/SourceFiles/intro/intro_phone.cpp index e689f8726..d31b3fea7 100644 --- a/Telegram/SourceFiles/intro/intro_phone.cpp +++ b/Telegram/SourceFiles/intro/intro_phone.cpp @@ -72,7 +72,7 @@ void PhoneWidget::setupQrLogin() { ) | rpl::map([=] { const auto result = account().appConfig().get( "qr_login_code", - "disabled"); + "[not-set]"); DEBUG_LOG(("PhoneWidget.qr_login_code: %1").arg(result)); return result; }) | rpl::filter([](const QString &value) { diff --git a/Telegram/SourceFiles/intro/intro_start.cpp b/Telegram/SourceFiles/intro/intro_start.cpp index 38eadab37..0fe3cb61b 100644 --- a/Telegram/SourceFiles/intro/intro_start.cpp +++ b/Telegram/SourceFiles/intro/intro_start.cpp @@ -33,7 +33,7 @@ void StartWidget::submit() { account().destroyStaleAuthorizationKeys(); const auto qrLogin = account().appConfig().get( "qr_login_code", - "disabled"); + "[not-set]"); DEBUG_LOG(("qr_login_code: %1").arg(qrLogin)); if (qrLogin == "primary") { goNext();