mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-30 07:18:28 +00:00
Enable secondary QR code login by default.
This commit is contained in:
parent
5c079b0bbd
commit
f5fdcc3af0
@ -72,7 +72,7 @@ void PhoneWidget::setupQrLogin() {
|
||||
) | rpl::map([=] {
|
||||
const auto result = account().appConfig().get<QString>(
|
||||
"qr_login_code",
|
||||
"disabled");
|
||||
"[not-set]");
|
||||
DEBUG_LOG(("PhoneWidget.qr_login_code: %1").arg(result));
|
||||
return result;
|
||||
}) | rpl::filter([](const QString &value) {
|
||||
|
@ -33,7 +33,7 @@ void StartWidget::submit() {
|
||||
account().destroyStaleAuthorizationKeys();
|
||||
const auto qrLogin = account().appConfig().get<QString>(
|
||||
"qr_login_code",
|
||||
"disabled");
|
||||
"[not-set]");
|
||||
DEBUG_LOG(("qr_login_code: %1").arg(qrLogin));
|
||||
if (qrLogin == "primary") {
|
||||
goNext<QrWidget>();
|
||||
|
Loading…
Reference in New Issue
Block a user