Fix "log out" spelling.
GitOrigin-RevId: e943fa4531d4d15043f762883eb8b77d9c58365d
This commit is contained in:
parent
f8fd7e410e
commit
cc28bdeae3
@ -347,7 +347,7 @@ void AuthManager::recover_password(uint64 query_id, string code) {
|
|||||||
G()->net_query_creator().create_unauth(telegram_api::auth_recoverPassword(code)));
|
G()->net_query_creator().create_unauth(telegram_api::auth_recoverPassword(code)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void AuthManager::logout(uint64 query_id) {
|
void AuthManager::log_out(uint64 query_id) {
|
||||||
if (state_ == State::Closing) {
|
if (state_ == State::Closing) {
|
||||||
return on_query_error(query_id, Status::Error(8, "Already logged out"));
|
return on_query_error(query_id, Status::Error(8, "Already logged out"));
|
||||||
}
|
}
|
||||||
@ -629,7 +629,7 @@ void AuthManager::on_log_out_result(NetQueryPtr &result) {
|
|||||||
status = std::move(result->error());
|
status = std::move(result->error());
|
||||||
}
|
}
|
||||||
LOG_IF(ERROR, status.is_error()) << "Receive error for auth.logOut: " << status;
|
LOG_IF(ERROR, status.is_error()) << "Receive error for auth.logOut: " << status;
|
||||||
// state_ will stay logout, so no queries will work.
|
// state_ will stay LoggingOut, so no queries will work.
|
||||||
destroy_auth_keys();
|
destroy_auth_keys();
|
||||||
if (query_id_ != 0) {
|
if (query_id_ != 0) {
|
||||||
on_query_ok();
|
on_query_ok();
|
||||||
@ -718,7 +718,7 @@ void AuthManager::on_get_authorization(tl_object_ptr<telegram_api::auth_Authoriz
|
|||||||
if (query_id_ != 0) {
|
if (query_id_ != 0) {
|
||||||
on_query_error(Status::Error(500, "Server doesn't send proper authorization"));
|
on_query_error(Status::Error(500, "Server doesn't send proper authorization"));
|
||||||
}
|
}
|
||||||
logout(0);
|
log_out(0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((auth->flags_ & telegram_api::auth_authorization::TMP_SESSIONS_MASK) != 0) {
|
if ((auth->flags_ & telegram_api::auth_authorization::TMP_SESSIONS_MASK) != 0) {
|
||||||
|
@ -43,7 +43,7 @@ class AuthManager : public NetActor {
|
|||||||
void check_password(uint64 query_id, string password);
|
void check_password(uint64 query_id, string password);
|
||||||
void request_password_recovery(uint64 query_id);
|
void request_password_recovery(uint64 query_id);
|
||||||
void recover_password(uint64 query_id, string code);
|
void recover_password(uint64 query_id, string code);
|
||||||
void logout(uint64 query_id);
|
void log_out(uint64 query_id);
|
||||||
void delete_account(uint64 query_id, const string &reason);
|
void delete_account(uint64 query_id, const string &reason);
|
||||||
|
|
||||||
void on_update_login_token();
|
void on_update_login_token();
|
||||||
|
@ -4776,7 +4776,7 @@ void Td::on_request(uint64 id, td_api::recoverAuthenticationPassword &request) {
|
|||||||
|
|
||||||
void Td::on_request(uint64 id, const td_api::logOut &request) {
|
void Td::on_request(uint64 id, const td_api::logOut &request) {
|
||||||
// will call Td::destroy later
|
// will call Td::destroy later
|
||||||
send_closure(auth_manager_actor_, &AuthManager::logout, id);
|
send_closure(auth_manager_actor_, &AuthManager::log_out, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Td::on_request(uint64 id, const td_api::close &request) {
|
void Td::on_request(uint64 id, const td_api::close &request) {
|
||||||
|
Loading…
Reference in New Issue
Block a user