Components | Description |
---|---|
Conversations | The Conversations component is designed to display a list of either User or Group . This essentially represents your recent conversation history. |
Messages | The Messages component is designed to manage the messaging interaction for either individual User or Group conversations. |
Contacts | The CometChatContacts component is specifically designed to facilitate the display and management of both User and Groups . |
OnItemClick
of the Conversation Component, ConversationsWithMessages achieves navigation from Conversation to Messages component.
User
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.
The ConversationsWithMessages does not generate its events but its component does. For a full list of these events, you can refer to Conversations events and Messages events.
In the following example, we’re incorporating observers for the ConversationDeleted
event of Conversations
and the MessageSent
event of the Messages
component.
user
method with a User object as input to the ConversationsWithMessages component. This will automatically direct you to the Messages component for the specified User
.
group
method with a Group object as input to the ConversationsWithMessages component. This will automatically direct you to the Messages component for the specified Group
.
Conversations
subcomponent to navigate the user from Conversations to Contacts
Messages
subcomponent to navigate from Messages to Details
menus
, the default behavior of ConversationsWithMessages will also be overridden.Conversations
, Messages
, and Contacts
component. Hence, each of these components will have its individual `Configuration“.
Configurations
expose properties that are available in its individual components.conversationsConfiguration
props as demonstrated below:
ConversationsConfiguration
can be found under Conversations. Properties marked with the report symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Conversations subcomponent and, in addition, you only want to display users in the conversation list.
You can modify the style using the conversationsStyle
property and filter the list with the conversationsRequestBuilder
property.
messagesConfiguration
props as demonstrated below:
MessagesConfiguration
can be found under Messages. Properties marked with the report symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Messages subcomponent and, in addition, you only want to hide message header.
You can modify the style using the messagesStyle
property and hide the message header with the hideMessageHeader
property.
startConversationConfiguration
props as demonstrated below:
ContactsConfiguration
can be found under Contacts. Properties marked with the report symbol are not accessible within the Configuration Object.
Example
Let’s say you want to change the style of the Contacts subcomponent and, in addition, you only want to hide the submit button.
You can modify the style using the contactsStyle
property and hide the submit button with the hideSubmitButton
property.