diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index ef97fabe6..1760db4fc 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -1609,7 +1609,8 @@ class GetChatJoinRequestsQuery final : public Td::ResultHandler { void send(DialogId dialog_id, const string &invite_link, const string &query, int32 offset_date, UserId offset_user_id, int32 limit) { dialog_id_ = dialog_id; - is_full_list_ = invite_link.empty() && query.empty() && offset_date == 0 && !offset_user_id.is_valid() && limit >= 3; + is_full_list_ = + invite_link.empty() && query.empty() && offset_date == 0 && !offset_user_id.is_valid() && limit >= 3; auto input_peer = td_->messages_manager_->get_input_peer(dialog_id, AccessRights::Write); if (input_peer == nullptr) { @@ -14010,7 +14011,7 @@ void ContactsManager::send_get_chat_full_query(ChatId chat_id, Promise &&p } }); - get_chat_full_queries_.add_query(chat_id.get(), std::move(send_query), std::move(promise)); + get_chat_full_queries_.add_query(DialogId(chat_id).get(), std::move(send_query), std::move(promise)); } int32 ContactsManager::get_chat_participant_count(ChatId chat_id) const { @@ -14355,7 +14356,7 @@ void ContactsManager::send_get_channel_full_query(ChannelFull *channel_full, Cha td->create_handler(promise.move_as_ok())->send(channel_id, std::move(input_channel)); } }); - get_channel_full_queries_.add_query(channel_id.get(), std::move(send_query), std::move(promise)); + get_chat_full_queries_.add_query(DialogId(channel_id).get(), std::move(send_query), std::move(promise)); } bool ContactsManager::have_secret_chat(SecretChatId secret_chat_id) const { diff --git a/td/telegram/ContactsManager.h b/td/telegram/ContactsManager.h index 6f00e8ac2..792dad421 100644 --- a/td/telegram/ContactsManager.h +++ b/td/telegram/ContactsManager.h @@ -1644,7 +1644,6 @@ class ContactsManager final : public Actor { QueryCombiner get_user_full_queries_{"GetUserFullCombiner", 2.0}; QueryCombiner get_chat_full_queries_{"GetChatFullCombiner", 2.0}; - QueryCombiner get_channel_full_queries_{"GetChannelFullCombiner", 2.0}; std::unordered_map, DialogIdHash> dialog_administrators_;