How to modify the users component

Have more questions? Submit a request
Was this article helpful?
0 out of 0 found this helpful
Share

Comments

1 comment

Please 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, and uuid cannot be used in ConversationsRequestBuilder. Could you please guide us on how to achieve the same filtered user chat and group functionality in CometChat v5?


    0