diff --git a/td/telegram/AuthManager.cpp b/td/telegram/AuthManager.cpp index ea54ea1d8..35e3182ef 100644 --- a/td/telegram/AuthManager.cpp +++ b/td/telegram/AuthManager.cpp @@ -215,10 +215,10 @@ void PhoneNumberManager::set_phone_number(uint64 query_id, string phone_number, case Type::ChangePhone: return process_send_code_result( query_id, send_code_helper_.send_change_phone_code(phone_number, allow_flash_call, is_current_phone_number)); - case Type::ConfirmPhone: + case Type::VerifyPhone: return process_send_code_result( query_id, send_code_helper_.send_confirm_phone_code(phone_number, allow_flash_call, is_current_phone_number)); - case Type::VerifyPhone: + case Type::ConfirmPhone: default: UNREACHABLE(); } @@ -234,11 +234,11 @@ void PhoneNumberManager::set_phone_number_and_hash(uint64 query_id, string hash, } switch (type_) { - case Type::VerifyPhone: + case Type::ConfirmPhone: return process_send_code_result(query_id, send_code_helper_.send_verify_phone_code( hash, phone_number, allow_flash_call, is_current_phone_number)); case Type::ChangePhone: - case Type::ConfirmPhone: + case Type::VerifyPhone: default: UNREACHABLE(); }