ConversationPredicate

This object enables you to filter conversations down to a specific subset.

Examples

1// To remove conversations that the user has no access to anymore
2{
3 access: ['!=', 'None']
4}

Properties

FieldTypeDescription
hasUnreadMessages (optional)booleanSet this field to only select conversations that have, or don't have any, unread messages.
custom (optional)CustomFieldPredicateOnly 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".

Used by