PinnedMessages
configurationProvides a stable root-level collection that the Chat can use for pinned-message banners when the current endless-scroll window does not contain the pinned target.
This option is most useful with scrollMode set to "endless" and a server-paged dataSource.
The Chat uses the last item in the pinnedMessages array as the active pinned banner. Each item can be a full message object or a partial object, but it must contain enough data to identify the target and render the pinned banner.
If the pinned target is not part of the current remote window, the Chat can still render the banner from pinnedMessages while using the endless endpoint to load the target batch when the banner is clicked.
pinnedMessages
ArraypinnedMessages.authorId
StringThe author's unique identifier.
The alternative text that will be displayed if no image is present.
The author's image.
The author's name.
pinnedMessages.id
StringThe unique identifier of the message.
pinnedMessages.isDeleted
BooleanChecks if the message is deleted.
pinnedMessages.isOwnMessage
BooleanChecks Whether this message belongs to the current user.
pinnedMessages.isPinned
BooleanThe pin mode of the message.
pinnedMessages.text
StringThe text of the message.