Improve parameter name.

GitOrigin-RevId: 2ea724125713026235a8805587c664f7382794f6
This commit is contained in:
levlam 2019-12-18 05:07:36 +03:00
parent 3acb445d1c
commit 2536665c43

View File

@ -625,10 +625,10 @@ void AuthManager::on_request_password_recovery_result(NetQueryPtr &result) {
on_query_ok(); on_query_ok();
} }
void AuthManager::on_authentication_result(NetQueryPtr &result, bool is_error_expected) { void AuthManager::on_authentication_result(NetQueryPtr &result, bool is_from_current_query) {
auto r_sign_in = fetch_result<telegram_api::auth_signIn>(result->ok()); auto r_sign_in = fetch_result<telegram_api::auth_signIn>(result->ok());
if (r_sign_in.is_error()) { if (r_sign_in.is_error()) {
if (is_error_expected && query_id_ != 0) { if (is_from_current_query && query_id_ != 0) {
return on_query_error(r_sign_in.move_as_error()); return on_query_error(r_sign_in.move_as_error());
} }
return; return;