Make DialogParticipantsFilter fields private.
This commit is contained in:
parent
393598314a
commit
d06aa6535d
@ -497,16 +497,13 @@ class ChannelParticipantsFilter {
|
||||
StringBuilder &operator<<(StringBuilder &string_builder, const ChannelParticipantsFilter &filter);
|
||||
|
||||
class DialogParticipantsFilter {
|
||||
MessageId top_thread_message_id_;
|
||||
|
||||
public:
|
||||
enum class Type : int32 { Contacts, Administrators, Members, Restricted, Banned, Mention, Bots };
|
||||
Type type_;
|
||||
MessageId top_thread_message_id_;
|
||||
|
||||
explicit DialogParticipantsFilter(Type type, MessageId top_thread_message_id = MessageId())
|
||||
: type_(type), top_thread_message_id_(top_thread_message_id) {
|
||||
}
|
||||
friend StringBuilder &operator<<(StringBuilder &string_builder, const DialogParticipantsFilter &filter);
|
||||
|
||||
public:
|
||||
explicit DialogParticipantsFilter(const tl_object_ptr<td_api::ChatMembersFilter> &filter);
|
||||
|
||||
td_api::object_ptr<td_api::SupergroupMembersFilter> get_supergroup_members_filter_object(const string &query) const;
|
||||
|
@ -2661,8 +2661,8 @@ void GroupCallManager::try_load_group_call_administrators(InputGroupCallId input
|
||||
std::move(result));
|
||||
});
|
||||
td_->contacts_manager_->search_dialog_participants(
|
||||
dialog_id, string(), 100, DialogParticipantsFilter(DialogParticipantsFilter::Type::Administrators),
|
||||
std::move(promise));
|
||||
dialog_id, string(), 100,
|
||||
DialogParticipantsFilter(td_api::make_object<td_api::chatMembersFilterAdministrators>()), std::move(promise));
|
||||
}
|
||||
|
||||
void GroupCallManager::finish_load_group_call_administrators(InputGroupCallId input_group_call_id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user