Fix verify and Confirm for phone number.

GitOrigin-RevId: a643f7fcd1bfd0909d99aee80babe7952790a9d9
This commit is contained in:
levlam 2018-12-19 00:13:33 +03:00
parent e586b31a87
commit 7ce738f619

View File

@ -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();
}