ConversationPredicate
This object enables you to filter conversations down to a specific subset.
1// To remove conversations that the user has no access to anymore2{3 access: ['!=', 'None']4}
Field | Type | Description |
---|---|---|
hasUnreadMessages (optional) | boolean | Set this field to only select conversations that have, or don't have any, unread messages. |
custom (optional) | CustomFieldPredicate | Only select conversations that have particular custom fields set to particular values. It is not necessary for all conversations to have these keys. |
access (optional) | FieldPredicate<"ReadWrite" | "Read" | "None"> | Only select conversations that the current user as specific access to. Either: "ReadWrite" , "Read" or "None" . |