Skip to main content

Ability to sort or group conversations by Tags (e.g., "Open" and "Closed") in the Conversations component in real time

Currently, the Conversations component does not support sorting or grouping conversations by tags (e.g., open or closed). In our use case, we want to display conversations in two sections: Open Chats and Closed Chats.

As a workaround, we used two separate Conversations components, each with its own ConversationsRequestBuilder filter:

readonly openConversationsRequestBuilder = new CometChat.ConversationsRequestBuilder() .setLimit(30) .setGroupTags(['open']) .withTags(true) .withUserAndGroupTags(true);

readonly closedConversationsRequestBuilder = new CometChat.ConversationsRequestBuilder() .setLimit(30) .setGroupTags(['closed']) .withTags(true) .withUserAndGroupTags(true); 

Initially, the conversations appear correctly. However, when a new message is sent, the conversation sometimes reappears in the other Conversations component, even though it does not match the tag filter.

Expected Behavior:

Conversations should remain filtered according to the ConversationsRequestBuilder, even when real-time updates occur.

Status: Idea

Log in to comment and vote

No comments yet

Be the first to share your thoughts.