ChatMessage represents a single message in a conversation. Messages support text content, GIF attachments, file attachments, @mentions, emoji reactions, threading (replies to a parent message), and quoting.
Properties
Client-only Fields
These fields are never sent by the server. They exist only in the SDK’s local state.Nested Types
GifData
Thegif field uses this shape when a GIF is attached:
Mention
Each entry in thementions array is one of:
UserMention
SpaceMention
Soft Deletion
When a user deletes their own message, the row is retained as a placeholder.userDeletedAt is set and the content, GIF, mentions, and metadata are cleared by the server. This preserves thread structure — a deleted parent message still anchors its thread replies.
Moderator-removed messages (
moderationStatus: "removed") are excluded from all default API responses. They are not returned to clients.Related
- Conversation — the conversation this message belongs to
- ConversationMember — membership records that track read state
- File — file attachments linked to a message

