Chat SDKs JavaScript v4
Chat SDKs JavaScript
Chat SDKs
JavaScript
Version 4
Filter group channels by user IDs
Copy link
To filter group channels by user IDs, use includeMode
in GroupChannelUserIdsFilter
. Let's assume the ID of the current user is Emma
and the user is a member of two group channels.
- Channel A consists of
Emma
,Maya
, andBrett
. - Channel B consists of
Emma
,Maya
,Brett
, andChelsea
.
When includeMode
is set to false
, a list of the current user's group channels containing exactly the queried user IDs is returned. In case you specify only one user ID in the filter, the filter returns a list of the current user's one distinct or more 1-to-1 group channels with the specified user.
JavaScriptTypeScript
A userIdsIncludeFilter
parameter returns the current user's group channel list that includes partial or exact user IDs. Two different results can be returned according to the value of the queryType
parameter.
JavaScriptTypeScript
JavaScriptTypeScript