ChatHandlers type

Object containing all the handlers required for chat components.

Chat related components from this package are able to pick out relevant handlers from this object. See <xref:useHandlers> and usePropsFor.

type ChatHandlers = {
  onDeleteMessage: (messageId: string) => Promise<void>
  onLoadPreviousChatMessages: (messagesToLoad: number) => Promise<boolean>
  onMessageSeen: (chatMessageId: string) => Promise<void>
  onRemoveParticipant: (userId: string) => Promise<void>
  onSendMessage: (
    content: string,
    options?: SendMessageOptions
  ) => Promise<void>
  onTyping: () => Promise<void>
  onUpdateMessage: (messageId: string, content: string) => Promise<void>
  updateThreadTopicName: (topicName: string) => Promise<void>
}