To filter group channels by user IDs, use the userIdsExactFilter
or userIdsIncludeFilter
filter. 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, and Jay.
-
Channel B consists of Harry, John, Jay, and Jin.
A userIdsExactFilter
filter 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.
The 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.