Use this guide to modify the default behavior of the users component to only return a subset of users.
Articles in this section
- How to use friends
- How to filter using tags
- How to send an interactive message via API
- How to modify a particular message template
- How to modify the users component
- How to modify the actions of a message
- How to add custom fixed replies to my React UI Kit
- How to send messages as a bot
- How to create my own Inline message composer
- How to properly log in and create users
Comments
1 commentPlease sign in to leave a comment.
In CometChat v4, we used the following approach to filter user chats and groups:
<CometChatMessages
group={chatDetails?.conversationWith}
detailsConfiguration={newDetailsConfiguration({
addMembersConfiguration: newAddMembersConfiguration({
usersRequestBuilder: new CometChat.UsersRequestBuilder()
.setLimit(100)
.setUIDs([...users]),
}),
})}
/>
In CometChat v5, we attempted the following implementation:
<CometChatConversations
activeConversation={activeItemasConversation}
headerView={conversationsHeaderView()}
conversationsRequestBuilder={new CometChat.ConversationsRequestBuilder()
.setLimit(10)
.setTags([...users])}
onItemClick={(e) => {
onSelectorItemClicked(e, "updateSelectedItem");
}}
/>
However, the
.setTags([...users])
method does not seem to work, anduuid
cannot be used inConversationsRequestBuilder
. Could you please guide us on how to achieve the same filtered user chat and group functionality in CometChat v5?