Skip to main content
Version: v5

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
latestMessagePreview

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?