你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MessageThreadProps type

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
}