You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|**`fetchInitialData`**| Fetch initial state for the Chat adapter. Performs the minimal fetch necessary for ChatComposite and API methods. |`() => Promise<void>`|
151
-
|**`onStateChange`**| Subscribes the handler to stateChanged events. |`(handler: (state: `[`ChatAdapterState`](#chatadapterstate)`) => void) => void`|
152
-
|**`offStateChange`**| Unsubscribes the handler to stateChanged events. |`(handler: (state: `[`ChatAdapterState`](#chatadapterstate)`) => void) => void`|
153
-
|**`getState`**| Get the current State |`() => `[`ChatAdapterState`](#chatadapterstate)|
154
-
|**`dispose`**| Dispose of the Composite |`() => void`|
155
-
|**`sendMessage`**| Send a message in the thread. |`(content: string) => Promise<void>`|
156
-
|**`sendReadReceipt`**| Send a read receipt for a message. |`(chatMessageId: string) => Promise<void>`|
157
-
|**`sendTypingIndicator`**| Send typing indicator in the thread. |`() => Promise<void>`|
158
-
|**`removeParticipant`**| Remove a participant in the thread. |`(userId: string) => Promise<void>`|
159
-
|**`setTopic`**| Set the topic for the thread. |`(topicName: string) => Promise<void>`|
|**`deleteMessage`**| Delete a message in the thread. |`(messageId: string) => Promise<void>`|
162
-
|**`loadPreviousChatMessages`**| Load more previous messages in the chat thread history. |`(messagesToLoad: number) => Promise<boolean>`|
163
-
|**`downloadAttachment`****(Beta)**| Download a list of attachments. Add your download logic and authentication here as needed. |`(options: { attachmentUrl: string }) => Promise<`AttachmentDownloadResult`(#attachmentdownloadresult-beta)>`|
|**`fetchInitialData`**| Fetch initial state for the Chat adapter. Performs the minimal fetch necessary for ChatComposite and API methods. |`() => Promise<void>`|
151
+
|**`onStateChange`**| Subscribes the handler to stateChanged events. |`(handler: (state: `[`ChatAdapterState`](#chatadapterstate)`) => void) => void`|
152
+
|**`offStateChange`**| Unsubscribes the handler to stateChanged events. |`(handler: (state: `[`ChatAdapterState`](#chatadapterstate)`) => void) => void`|
153
+
|**`getState`**| Get the current State |`() => `[`ChatAdapterState`](#chatadapterstate)|
154
+
|**`dispose`**| Dispose of the Composite |`() => void`|
155
+
|**`sendMessage`**| Send a message in the thread. |`(content: string) => Promise<void>`|
156
+
|**`sendReadReceipt`**| Send a read receipt for a message. |`(chatMessageId: string) => Promise<void>`|
157
+
|**`sendTypingIndicator`**| Send typing indicator in the thread. |`() => Promise<void>`|
158
+
|**`removeParticipant`**| Remove a participant in the thread. |`(userId: string) => Promise<void>`|
159
+
|**`setTopic`**| Set the topic for the thread. |`(topicName: string) => Promise<void>`|
|**`deleteMessage`**| Delete a message in the thread. |`(messageId: string) => Promise<void>`|
162
+
|**`loadPreviousChatMessages`**| Load more previous messages in the chat thread history. |`(messagesToLoad: number) => Promise<boolean>`|
163
+
|**`downloadResourceToCache`****(Beta)**| Downloads a resource into the cache for the given message. |`(resourceDetails: `[`ResourceDetails`](#resourcedetails-beta)`): Promise<void>`|
164
+
|**`removeResourceFromCache`****(Beta)**| Removes a resource from the cache for the given message. |`(resourceDetails: `[`ResourceDetails`](#resourcedetails-beta)`): Promise<void>`|
164
165
165
166
### ChatAdapterState
166
167
@@ -172,11 +173,13 @@ The ChatAdapter and the ChatComposite are purpose-built to support single chat t
|**`credential`**|[`CommunicationTokenCredential`](https://docs.microsoft.com/en-us/javascript/api/@azure/communication-common/communicationtokencredential) <br />_The optional property that contains communication token._|
0 commit comments