Fix spelling of inaccessible.
GitOrigin-RevId: d28c4c60c365cd453ec89d34519b75abaed169b5
This commit is contained in:
parent
0c89d34007
commit
d6c5dda880
@ -2407,7 +2407,7 @@ updateActiveNotifications groups:vector<notificationGroup> = Update;
|
|||||||
updateHavePendingNotifications have_pending_notifications:Bool = Update;
|
updateHavePendingNotifications have_pending_notifications:Bool = Update;
|
||||||
|
|
||||||
//@description Some messages were deleted @chat_id Chat identifier @message_ids Identifiers of the deleted messages
|
//@description Some messages were deleted @chat_id Chat identifier @message_ids Identifiers of the deleted messages
|
||||||
//@is_permanent True, if the messages are permanently deleted by a user (as opposed to just becoming unaccessible)
|
//@is_permanent True, if the messages are permanently deleted by a user (as opposed to just becoming inaccessible)
|
||||||
//@from_cache True, if the messages are deleted only from the cache and can possibly be retrieved again in the future
|
//@from_cache True, if the messages are deleted only from the cache and can possibly be retrieved again in the future
|
||||||
updateDeleteMessages chat_id:int53 message_ids:vector<int53> is_permanent:Bool from_cache:Bool = Update;
|
updateDeleteMessages chat_id:int53 message_ids:vector<int53> is_permanent:Bool from_cache:Bool = Update;
|
||||||
|
|
||||||
|
@ -8703,7 +8703,7 @@ bool ContactsManager::get_user_full(UserId user_id, Promise<Unit> &&promise) {
|
|||||||
if (user_full == nullptr || !user_full->is_inited) {
|
if (user_full == nullptr || !user_full->is_inited) {
|
||||||
auto input_user = get_input_user(user_id);
|
auto input_user = get_input_user(user_id);
|
||||||
if (input_user == nullptr) {
|
if (input_user == nullptr) {
|
||||||
promise.set_error(Status::Error(6, "Can't get info about unaccessible user"));
|
promise.set_error(Status::Error(6, "Can't get info about inaccessible user"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1896,7 +1896,7 @@ vector<MessageEntity> get_message_entities(const ContactsManager *contacts_manag
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (!contacts_manager->have_input_user(user_id)) {
|
if (!contacts_manager->have_input_user(user_id)) {
|
||||||
LOG(ERROR) << "Receive unaccessible " << user_id << " in MentionName from " << source;
|
LOG(ERROR) << "Receive inaccessible " << user_id << " in MentionName from " << source;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
entities.emplace_back(entity_mention_name->offset_, entity_mention_name->length_, user_id);
|
entities.emplace_back(entity_mention_name->offset_, entity_mention_name->length_, user_id);
|
||||||
|
@ -20027,8 +20027,8 @@ DialogId MessagesManager::resolve_dialog_username(const string &username) {
|
|||||||
return it->second.dialog_id;
|
return it->second.dialog_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto it2 = unaccessible_resolved_usernames_.find(clean_username(username));
|
auto it2 = inaccessible_resolved_usernames_.find(clean_username(username));
|
||||||
if (it2 != unaccessible_resolved_usernames_.end()) {
|
if (it2 != inaccessible_resolved_usernames_.end()) {
|
||||||
return it2->second;
|
return it2->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20053,8 +20053,8 @@ DialogId MessagesManager::search_public_dialog(const string &username_to_search,
|
|||||||
}
|
}
|
||||||
dialog_id = it->second.dialog_id;
|
dialog_id = it->second.dialog_id;
|
||||||
} else {
|
} else {
|
||||||
auto it2 = unaccessible_resolved_usernames_.find(username);
|
auto it2 = inaccessible_resolved_usernames_.find(username);
|
||||||
if (it2 != unaccessible_resolved_usernames_.end()) {
|
if (it2 != inaccessible_resolved_usernames_.end()) {
|
||||||
dialog_id = it2->second;
|
dialog_id = it2->second;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -20241,7 +20241,7 @@ void MessagesManager::on_dialog_username_updated(DialogId dialog_id, const strin
|
|||||||
}
|
}
|
||||||
if (!old_username.empty() && old_username != new_username) {
|
if (!old_username.empty() && old_username != new_username) {
|
||||||
resolved_usernames_.erase(clean_username(old_username));
|
resolved_usernames_.erase(clean_username(old_username));
|
||||||
unaccessible_resolved_usernames_.erase(clean_username(old_username));
|
inaccessible_resolved_usernames_.erase(clean_username(old_username));
|
||||||
}
|
}
|
||||||
if (!new_username.empty()) {
|
if (!new_username.empty()) {
|
||||||
auto cache_time = is_update_about_username_change_received(dialog_id) ? USERNAME_CACHE_EXPIRE_TIME
|
auto cache_time = is_update_about_username_change_received(dialog_id) ? USERNAME_CACHE_EXPIRE_TIME
|
||||||
@ -20263,11 +20263,11 @@ void MessagesManager::on_resolved_username(const string &username, DialogId dial
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
unaccessible_resolved_usernames_[clean_username(username)] = dialog_id;
|
inaccessible_resolved_usernames_[clean_username(username)] = dialog_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessagesManager::drop_username(const string &username) {
|
void MessagesManager::drop_username(const string &username) {
|
||||||
unaccessible_resolved_usernames_.erase(clean_username(username));
|
inaccessible_resolved_usernames_.erase(clean_username(username));
|
||||||
|
|
||||||
auto it = resolved_usernames_.find(clean_username(username));
|
auto it = resolved_usernames_.find(clean_username(username));
|
||||||
if (it == resolved_usernames_.end()) {
|
if (it == resolved_usernames_.end()) {
|
||||||
|
@ -2334,7 +2334,7 @@ class MessagesManager : public Actor {
|
|||||||
};
|
};
|
||||||
|
|
||||||
std::unordered_map<string, ResolvedUsername> resolved_usernames_;
|
std::unordered_map<string, ResolvedUsername> resolved_usernames_;
|
||||||
std::unordered_map<string, DialogId> unaccessible_resolved_usernames_;
|
std::unordered_map<string, DialogId> inaccessible_resolved_usernames_;
|
||||||
|
|
||||||
struct PendingOnGetDialogs {
|
struct PendingOnGetDialogs {
|
||||||
vector<tl_object_ptr<telegram_api::dialog>> dialogs;
|
vector<tl_object_ptr<telegram_api::dialog>> dialogs;
|
||||||
|
@ -195,7 +195,7 @@ Result<PrivacyManager::UserPrivacySettingRule> PrivacyManager::UserPrivacySettin
|
|||||||
UserPrivacySettingRule res(*rule);
|
UserPrivacySettingRule res(*rule);
|
||||||
for (auto user_id : res.user_ids_) {
|
for (auto user_id : res.user_ids_) {
|
||||||
if (!G()->td().get_actor_unsafe()->contacts_manager_->have_user(UserId(user_id))) {
|
if (!G()->td().get_actor_unsafe()->contacts_manager_->have_user(UserId(user_id))) {
|
||||||
return Status::Error(500, "Got unaccessible user from the server");
|
return Status::Error(500, "Got inaccessible user from the server");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return res;
|
return res;
|
||||||
|
@ -47,7 +47,7 @@ class RequestActor : public Actor {
|
|||||||
} else {
|
} else {
|
||||||
if (--tries_left_ == 0) {
|
if (--tries_left_ == 0) {
|
||||||
future.close();
|
future.close();
|
||||||
do_send_error(Status::Error(400, "Requested data is unaccessible"));
|
do_send_error(Status::Error(400, "Requested data is inaccessible"));
|
||||||
return stop();
|
return stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user