MessageThreadProps type
Props for MessageThread.
type MessageThreadProps = {
disableEditing?: boolean
disableJumpToNewMessageButton?: boolean
messages: (ChatMessage | SystemMessage | CustomMessage)[]
numberOfChatMessagesToReload?: number
onDeleteMessage?: (messageId: string) => Promise<void>
onLoadPreviousChatMessages?: (messagesToLoad: number) => Promise<boolean>
onMessageSeen?: (messageId: string) => Promise<void>
onRenderAvatar?: OnRenderAvatarCallback
onRenderJumpToNewMessageButton?: (
newMessageButtonProps: JumpToNewMessageButtonProps
) => JSX.Element
onRenderMessage?: (
messageProps: MessageProps,
messageRenderer?: MessageRenderer
) => JSX.Element
onRenderMessageStatus?: (
messageStatusIndicatorProps: MessageStatusIndicatorProps
) => JSX.Element | null
onSendMessage?: (messageId: string) => Promise<void>
onUpdateMessage?: UpdateMessageCallback
participantCount?: number
readReceiptsBySenderId?: ReadReceiptsBySenderId
showMessageDate?: boolean
showMessageStatus?: boolean
strings?: Partial<MessageThreadStrings>
styles?: MessageThreadStyles
userId: string
}