From 5258ee0deb01c1f26794ea642bab5f5c80bd5875 Mon Sep 17 00:00:00 2001 From: Slavasil Date: Thu, 21 Nov 2024 20:52:19 +0300 Subject: [PATCH] fix app asking for 2FA code twice (forgot to return from switch-case lol) --- tg.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tg.cpp b/tg.cpp index 2baf625..6aab182 100644 --- a/tg.cpp +++ b/tg.cpp @@ -88,6 +88,7 @@ bool TelegramClient::process_response(td::ClientManager::Response response) { spdlog::debug("setting password"); if (passwordProvider) passwordProvider(std::bind(&TelegramClient::set_password, this, std::placeholders::_1)); + return true; case td_api::authorizationStateWaitCode::ID: spdlog::debug("setting 2FA code"); if (authCodeProvider)