fix app asking for 2FA code twice (forgot to return from switch-case lol)
This commit is contained in:
parent
aaef54f72e
commit
5258ee0deb
1
tg.cpp
1
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)
|
||||
|
Loading…
Reference in New Issue
Block a user