Message

23 Sep 20251 minute to read

Represents a model for a messages in the chatUI component.

Properties

author UserModel

Specifies the author of the message in the Chat UI component.
This property references a UserModel object that contains details about the user who sent the message.

Defaults to null

id string

Specifies the unique identifier for each message sent in the Chat UI component.
Represents a string that uniquely identifies a message for tracking and managing individual messages within the chat.

Defaults to ’’’

isForwarded boolean

Specifies whether the message has been forwarded.
When set to true, the message is visually marked as forwarded.

Defaults to false

isPinned boolean

Specifies whether the message is pinned.
When set to true, the message will be visually highlighted and can appear in the pinned messages section.

Defaults to false

mentionUsers UserModel[]

Represents an array of users mentioned in the message.
This field contains the list of users referenced via the @mention feature in the message text, populated when mentions are selected from the suggestion popup.
The field is optional and defaults to an empty array if no mentions are included in the message.

Defaults to []

replyTo MessageReplyModel

Specifies the reference to the original message when this message is a reply.
Contains the MessageReplyModel of the message being replied to.

Defaults to null

status MessageStatusModel

Specifies the status of the message in the Chat UI component.
Represents the current status of the message, such as sent, received, or read. It helps in tracking the messages within the chat component.

Defaults to null

text string

Represents the content of the message sent by a user in the Chat UI component.

Defaults to ’’

timeStamp Date

Specifies the timestamp of when the message was sent.
This property holds a Date object that represents the exact time the message was created, providing context to the conversation flow.

Defaults to ’’

timeStampFormat string

Specifies the format of the timestamp for displaying the message’s sending time.
By default, the format is set based on the culture of the application.
You can customize the format using a specific pattern, such as “‘dd/MM/yyyy hh:mm’” in string format.

Defaults to ’’