{
created_at: '' ,
messageObject: { ... },
previews: {
bold: true,
text: 'This is the message preview text'
},
status: 0 | 1 | 2 // read states of latest message.
}ChannelPreviewMessage
Renders a preview of the latest message inside ChannelList. This is the default component for the PreviewMessage prop.
Best Practices
- Keep previews short and avoid heavy formatting in list rows.
- Prefer server-provided preview data when available.
- Handle missing message text gracefully (attachments-only, system messages).
- Avoid expensive parsing in render; precompute if needed.
- Keep preview styling consistent with the rest of
ChannelList.
Props
latestMessagePreview
Latest message formatted for preview.
Example:
| Type |
|---|
| Object |