Skip to content

Commit 839fab0

Browse files
authored
[Chat] UpdateMessage not sending metadata (#4213)
1 parent 3cbaf91 commit 839fab0

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "UpdateMessage",
5+
"comment": "Bug Fix metadata was not being sent up to the handler",
6+
"packageName": "@azure/communication-react",
7+
"email": "[email protected]",
8+
"dependentChangeType": "patch"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "UpdateMessage",
5+
"comment": "Bug Fix metadata was not being sent up to the handler",
6+
"packageName": "@azure/communication-react",
7+
"email": "[email protected]",
8+
"dependentChangeType": "patch"
9+
}

packages/react-composites/src/composites/ChatComposite/adapter/AzureCommunicationChatAdapter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export class AzureCommunicationChatAdapter implements ChatAdapter {
275275
): Promise<void> {
276276
return await this.asyncTeeErrorToEventEmitter(async () => {
277277
/* @conditional-compile-remove(file-sharing) */
278-
const updatedOptions = options ? { attachmentMetadata: options.attachmentMetadata, metadata: metadata } : {};
278+
const updatedOptions = { attachmentMetadata: options?.attachmentMetadata, metadata: metadata };
279279
/* @conditional-compile-remove(file-sharing) */
280280
return await this.handlers.onUpdateMessage(messageId, content, updatedOptions);
281281
return await this.handlers.onUpdateMessage(messageId, content);

0 commit comments

Comments
 (0)