CometChatConversations
is a component that displays all conversations associated with the currently logged-in user.
onBack
is triggered when you press the back button in the app bar. It does not have a default behavior. However, you can override its behavior using the following code snippet.
ConversationsRequestBuilder
in the Conversations Component to filter the conversation list. You can modify the builder as per your specific requirements with multiple options available to know more refer to ConversationRequestBuilder.
You can set filters using the following parameters.
User
or Groups
Tag
Tag
Tag
Component
. By using event you can extend existing functionality. Being global events, they can be applied in Multiple Locations and are capable of being Added or Removed.
CometChatConversations
component to customize its styling.
Property | Description | Code |
---|---|---|
hideBackButton | Prop used to toggle the visibility of the back button in the app bar. | hideBackButton={true} |
hideHeader | Prop used to toggle visibility for the toolbar/header bar | hideHeader={true} |
hideError | Prop to hide error state on fetching conversations | hideError={true} |
receiptsVisibility | Prop used to control the visibility of read receipts without affecting the functionality of marking messages as read and delivered | receiptsVisibility={false} |
selectionMode | This method determines the selection mode for conversations, enabling users to select either a single conversation or multiple conversations at once. | selectionMode="multiple" |
hideSubmitButton | Prop used to toggle the visibility of the submit button when selectionMode is enabled. | hideSubmitButton={true} |
usersStatusVisibility | Prop used to toggle user status visibilty. | usersStatusVisibility={false} |
groupTypeVisibility | Prop used to toggle group type visibilty. | groupTypeVisibility={false} |
deleteConversationOptionVisibility | Prop used to toggle delete conversation option visibilty. | deleteConversationOptionVisibility={false} |
AppBarOptions
to the CometChatConversations
widget.
Use Cases: