ChatHandlers type
物件,包含聊天元件所需的所有處理常式。 此套件中的聊天相關元件能夠從這個物件中挑選相關的處理常式。 請參閱 <xref:useHandlers> 和 <xref: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) => Promise<void>,
onTyping: () => Promise<void>,
onUpdateMessage: (messageId: string, content: string) => Promise<void>,
updateThreadTopicName: (topicName: string) => Promise<void>,
}