fix app asking for 2FA code twice (forgot to return from switch-case lol)

This commit is contained in:
Slavasil 2024-11-21 20:52:19 +03:00
parent aaef54f72e
commit 5258ee0deb

1
tg.cpp
View File

@ -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)