Never return self twice in searchChatMembers.
GitOrigin-RevId: 79b104de48f8b0e20c9110fd57e5e9a5bc847e87
This commit is contained in:
parent
692fddfe91
commit
5e2ad0a814
@ -25196,7 +25196,7 @@ std::pair<int32, vector<DialogParticipant>> MessagesManager::search_private_chat
|
||||
break;
|
||||
case DialogParticipantsFilter::Members:
|
||||
user_ids.push_back(my_user_id);
|
||||
if (peer_user_id.is_valid()) {
|
||||
if (peer_user_id.is_valid() && peer_user_id != my_user_id) {
|
||||
user_ids.push_back(peer_user_id);
|
||||
}
|
||||
break;
|
||||
@ -25208,7 +25208,7 @@ std::pair<int32, vector<DialogParticipant>> MessagesManager::search_private_chat
|
||||
if (td_->auth_manager_->is_bot()) {
|
||||
user_ids.push_back(my_user_id);
|
||||
}
|
||||
if (peer_user_id.is_valid() && td_->contacts_manager_->is_user_bot(peer_user_id)) {
|
||||
if (peer_user_id.is_valid() && td_->contacts_manager_->is_user_bot(peer_user_id) && peer_user_id != my_user_id) {
|
||||
user_ids.push_back(peer_user_id);
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user