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.
Please authenticate to join the conversation.
New
π‘ Feature Request
Get notified by email when there are changes.
New
π‘ Feature Request
Get notified by email when there are changes.