Don't display deleted users in channel member search

This commit is contained in:
Ali
2019-11-12 17:43:29 +04:00
parent c257d42967
commit 8ad20aa51c
2 changed files with 11 additions and 0 deletions

View File

@@ -640,6 +640,10 @@ final class ChannelMembersSearchContainerNode: SearchDisplayControllerContentNod
var index = 0
for participant in foundGroupMembers {
if participant.peer.isDeleted {
continue
}
if !existingPeerIds.contains(participant.peer.id) {
existingPeerIds.insert(participant.peer.id)
let section: ChannelMembersSearchSection