diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index 29583a266..9adbeea2d 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -5738,7 +5738,7 @@ void ContactsManager::on_get_user(tl_object_ptr &&user_ptr, u->is_deleted = is_deleted; if (u->is_deleted) { - invalidate_user_full(user_id); + drop_user_full(user_id); } LOG(DEBUG) << "User.is_deleted has changed for " << user_id; @@ -7917,7 +7917,7 @@ void ContactsManager::on_update_user_links(User *u, UserId user_id, LinkState ou } } -void ContactsManager::invalidate_user_full(UserId user_id) { +void ContactsManager::drop_user_full(UserId user_id) { auto user_full = get_user_full(user_id); if (user_full == nullptr) { return; @@ -8038,7 +8038,7 @@ void ContactsManager::on_get_chat_participants(tl_object_ptrdefault_permissions_version = -1; c->pinned_message_version = -1; - invalidate_chat_full(chat_id); + drop_chat_full(chat_id); } if (drop_invite_link) { auto it = chat_invite_links_.find(chat_id); @@ -9263,7 +9263,7 @@ void ContactsManager::on_update_chat_full_participants(ChatFull *chat_full, Chat update_chat_online_member_count(chat_full, chat_id, true); } -void ContactsManager::invalidate_chat_full(ChatId chat_id) { +void ContactsManager::drop_chat_full(ChatId chat_id) { ChatFull *chat_full = get_chat_full(chat_id); if (chat_full == nullptr) { auto it = chat_invite_links_.find(chat_id); diff --git a/td/telegram/ContactsManager.h b/td/telegram/ContactsManager.h index 4ac2002d6..21a618faf 100644 --- a/td/telegram/ContactsManager.h +++ b/td/telegram/ContactsManager.h @@ -562,7 +562,7 @@ class ContactsManager : public Actor { void parse(ParserT &parser); }; - // do not forget to update invalidate_user_full and on_get_user_full + // do not forget to update drop_user_full and on_get_user_full struct UserFull { vector photos; int32 photo_count = -1; @@ -955,7 +955,7 @@ class ContactsManager : public Actor { void on_update_user_full_common_chat_count(UserFull *user_full, UserId user_id, int32 common_chat_count); bool on_update_user_full_bot_info(UserFull *user_full, UserId user_id, int32 bot_info_version, tl_object_ptr &&bot_info); - void invalidate_user_full(UserId user_id); + void drop_user_full(UserId user_id); void on_update_chat_status(Chat *c, ChatId chat_id, DialogParticipantStatus status); void on_update_chat_default_permissions(Chat *c, ChatId chat_id, RestrictedRights default_permissions, int32 version); @@ -991,7 +991,7 @@ class ContactsManager : public Actor { void speculative_add_channel_user(ChannelId channel_id, UserId user_id, DialogParticipantStatus new_status, DialogParticipantStatus old_status); - void invalidate_chat_full(ChatId chat_id); + void drop_chat_full(ChatId chat_id); void update_user_online_member_count(User *u); void update_chat_online_member_count(const ChatFull *chat_full, ChatId chat_id, bool is_from_server);