Improve function name.
GitOrigin-RevId: 93a8577f8cbe4e7d12f5365b0ea3eff8d5b82a94
This commit is contained in:
parent
b575ed9a98
commit
7bf004c8c3
@ -1280,7 +1280,8 @@ void SecureManager::send_passport_authorization_form(int32 authorization_form_id
|
|||||||
send_with_promise(std::move(query), std::move(new_promise));
|
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_++;
|
refcnt_++;
|
||||||
for (auto &c : country_code) {
|
for (auto &c : country_code) {
|
||||||
c = to_upper(c);
|
c = to_upper(c);
|
||||||
|
@ -54,7 +54,7 @@ class SecureManager : public NetQueryCallback {
|
|||||||
void send_passport_authorization_form(int32 authorization_form_id, std::vector<SecureValueType> types,
|
void send_passport_authorization_form(int32 authorization_form_id, std::vector<SecureValueType> types,
|
||||||
Promise<> promise);
|
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:
|
private:
|
||||||
ActorShared<> parent_;
|
ActorShared<> parent_;
|
||||||
|
@ -7453,7 +7453,7 @@ void Td::on_request(uint64 id, td_api::getPreferredCountryLanguage &request) {
|
|||||||
CHECK_IS_USER();
|
CHECK_IS_USER();
|
||||||
CLEAN_INPUT_STRING(request.country_code_);
|
CLEAN_INPUT_STRING(request.country_code_);
|
||||||
CREATE_REQUEST_PROMISE();
|
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));
|
std::move(promise));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user