Chat iOS v4
Chat iOS
Chat
iOS
Version 4
Home
/
Chat
/
iOS
/
Channel
Filter group channels by user IDs
Copy link
To filter group channels by user IDs, use userIdsExactFilter
or userIdsIncludeFilter
. Let's assume the ID of the current user is Harry
and the user is a member of two group channels.
- Channel A consists of
Harry
,John
, andJay
. - Channel B consists of
Harry
,John
,Jay
, andJin
. - Channel C consists of
Harry
,Jay
, andJason
.
The userIdsExactFilter
returns a list of the current user's group channels containing exactly the queried user IDs. In case you specify only one user ID in the filter, the filter returns a list of the current user's one or more 1-to-1 group channels with the specified user.
A userIdsIncludeFilter
filter returns a list of the current user's group channels including the queried user IDs partially and exactly. Two different results can be returned according to the value of the queryType
parameter.