Hi sendBird Community,
I was a deleted some channel from dashboard, But When I get the channel list it will also appear the deleted channel as well
Here is my code for get Channel List
let channelListQuery = GroupChannel.createMyGroupChannelListQuery {
$0.setSearchFilter(channelName, fields: .channelName)
$0.setUserIdsIncludeFilter(["1101", "1128"], queryType: .and)
}
let collection = SendbirdChat.createGroupChannelCollection(query: channelListQuery)
collection?.delegate = self
collection?.loadMore { [weak self] channels, error in
guard let self = self else {
return
}
if let error = error {
self.delegate?.channelListError(self, didReceiveError: error)
return
}
guard let channels = channels else {
return
}
print(self.channels)
}
Let me know if you need any
Thanks
Niraj Patel