Fix "log out" spelling.

GitOrigin-RevId: e943fa4531d4d15043f762883eb8b77d9c58365d
This commit is contained in:
levlam 2020-07-23 00:19:47 +03:00
parent f8fd7e410e
commit cc28bdeae3
3 changed files with 5 additions and 5 deletions

View File

@ -347,7 +347,7 @@ void AuthManager::recover_password(uint64 query_id, string 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) {
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());
}
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();
if (query_id_ != 0) {
on_query_ok();
@ -718,7 +718,7 @@ void AuthManager::on_get_authorization(tl_object_ptr<telegram_api::auth_Authoriz
if (query_id_ != 0) {
on_query_error(Status::Error(500, "Server doesn't send proper authorization"));
}
logout(0);
log_out(0);
return;
}
if ((auth->flags_ & telegram_api::auth_authorization::TMP_SESSIONS_MASK) != 0) {

View File

@ -43,7 +43,7 @@ class AuthManager : public NetActor {
void check_password(uint64 query_id, string password);
void request_password_recovery(uint64 query_id);
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 on_update_login_token();

View File

@ -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) {
// 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) {