Fix filter for getChatMembers

This commit is contained in:
SMAZNet 2021-07-01 16:31:51 +04:30 committed by GitHub
parent d7f30ca00e
commit 4df28c5676
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8549,7 +8549,7 @@ td::Status Client::process_get_chat_members_query(PromisedQueryPtr &query) {
td_api::object_ptr<td_api::SupergroupMembersFilter> filter; td_api::object_ptr<td_api::SupergroupMembersFilter> filter;
td::string filter_name = td::to_lower(query->arg("filter")); td::string filter_name = td::to_lower(query->arg("filter"));
auto query_ = query->arg("query"); auto query_ = query->arg("query");
if (!query->empty()) { if (!query_->empty()) {
filter = td_api::make_object<td_api::supergroupMembersFilterSearch>(query_.str()); filter = td_api::make_object<td_api::supergroupMembersFilterSearch>(query_.str());
} else if (filter_name == "members" || filter_name == "participants") { } else if (filter_name == "members" || filter_name == "participants") {
filter = td_api::make_object<td_api::supergroupMembersFilterRecent>(); filter = td_api::make_object<td_api::supergroupMembersFilterRecent>();