Skip to main content
Version: v3

ChannelPreviewMessage

Component to render a preview of latest message on channel within the ChannelList. This is the default component provided to the prop PreviewMessage on the ChannelList component.

Props

required
lastMessagePreview

Latest message on a channel, formatted for preview.

e.g.

{
created_at: '' ,
messageObject: { ... },
previews: {
bold: true,
text: 'This is the message preview text'
},
status: 0 | 1 | 2 // read states of latest message.
}
Type
object

Did you find this page helpful?