How to filter group channels by channel name OR the participant's name?

I’m trying to implement a search feature where a user can search (filter) either by a channel name OR a username (participant’s name) to get a list of channel that user belongs to.

I’m trying to implement it using channelNameContainsFilter, nicknameContainsFilter. But it is not working as expected.

Am I missing something?

version: 4.14.4

Hi @Sanjan_Adhikari,
If both channelNameContainsFilter and nicknameContainsFilter are included, it will filter channels that satisfy both conditions.

QueryType is used to perform logical operations involving userIDs only, such as in setUserIdsIncludeFilter and GroupChannelUserIdsFilter. It does not function in the manner you mentioned.