Improve function name.

GitOrigin-RevId: 93a8577f8cbe4e7d12f5365b0ea3eff8d5b82a94
This commit is contained in:
levlam 2020-08-23 23:02:20 +03:00
parent b575ed9a98
commit 7bf004c8c3
3 changed files with 4 additions and 3 deletions

View File

@ -1280,7 +1280,8 @@ void SecureManager::send_passport_authorization_form(int32 authorization_form_id
send_with_promise(std::move(query), std::move(new_promise));
}
void SecureManager::get_preferred_country_code(string country_code, Promise<td_api::object_ptr<td_api::text>> promise) {
void SecureManager::get_preferred_country_language(string country_code,
Promise<td_api::object_ptr<td_api::text>> promise) {
refcnt_++;
for (auto &c : country_code) {
c = to_upper(c);

View File

@ -54,7 +54,7 @@ class SecureManager : public NetQueryCallback {
void send_passport_authorization_form(int32 authorization_form_id, std::vector<SecureValueType> types,
Promise<> promise);
void get_preferred_country_code(string country_code, Promise<td_api::object_ptr<td_api::text>> promise);
void get_preferred_country_language(string country_code, Promise<td_api::object_ptr<td_api::text>> promise);
private:
ActorShared<> parent_;

View File

@ -7453,7 +7453,7 @@ void Td::on_request(uint64 id, td_api::getPreferredCountryLanguage &request) {
CHECK_IS_USER();
CLEAN_INPUT_STRING(request.country_code_);
CREATE_REQUEST_PROMISE();
send_closure(secure_manager_, &SecureManager::get_preferred_country_code, std::move(request.country_code_),
send_closure(secure_manager_, &SecureManager::get_preferred_country_language, std::move(request.country_code_),
std::move(promise));
}