Remove useless check.

This commit is contained in:
levlam 2023-09-21 20:41:11 +03:00
parent 1e2c0ce814
commit 254a3bfef0

View File

@ -1090,7 +1090,6 @@ void AuthManager::on_request_password_recovery_result(NetQueryPtr &&net_query) {
return on_current_query_error(r_email_address_pattern.move_as_error());
}
auto email_address_pattern = r_email_address_pattern.move_as_ok();
CHECK(email_address_pattern->get_id() == telegram_api::auth_passwordRecovery::ID);
wait_password_state_.email_address_pattern_ = std::move(email_address_pattern->email_pattern_);
update_state(State::WaitPassword, true);
on_current_query_ok();