From b6c5aa2983054828baa06af4ac0a9e6ffd54c439 Mon Sep 17 00:00:00 2001 From: John <109105353+jpeng-ms@users.noreply.github.com> Date: Tue, 18 Jun 2024 13:49:06 -0700 Subject: [PATCH] [Chat] Fixed the issue where Rich Text Editor doesn't send HTML messages if there are attached files (#4747) --- ...ation-react-cc2ef409-ce98-484f-8b0e-d047cc26af08.json | 9 +++++++++ ...ation-react-cc2ef409-ce98-484f-8b0e-d047cc26af08.json | 9 +++++++++ .../src/handlers/createHandlers.ts | 3 ++- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 change-beta/@azure-communication-react-cc2ef409-ce98-484f-8b0e-d047cc26af08.json create mode 100644 change/@azure-communication-react-cc2ef409-ce98-484f-8b0e-d047cc26af08.json diff --git a/change-beta/@azure-communication-react-cc2ef409-ce98-484f-8b0e-d047cc26af08.json b/change-beta/@azure-communication-react-cc2ef409-ce98-484f-8b0e-d047cc26af08.json new file mode 100644 index 00000000000..3f14d39b2e0 --- /dev/null +++ b/change-beta/@azure-communication-react-cc2ef409-ce98-484f-8b0e-d047cc26af08.json @@ -0,0 +1,9 @@ +{ + "type": "patch", + "area": "fix", + "workstream": "File Sharing", + "comment": "Fixed the issue where Rich Text Editor cannot send rich text with file attachments", + "packageName": "@azure/communication-react", + "email": "109105353+jpeng-ms@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/change/@azure-communication-react-cc2ef409-ce98-484f-8b0e-d047cc26af08.json b/change/@azure-communication-react-cc2ef409-ce98-484f-8b0e-d047cc26af08.json new file mode 100644 index 00000000000..3f14d39b2e0 --- /dev/null +++ b/change/@azure-communication-react-cc2ef409-ce98-484f-8b0e-d047cc26af08.json @@ -0,0 +1,9 @@ +{ + "type": "patch", + "area": "fix", + "workstream": "File Sharing", + "comment": "Fixed the issue where Rich Text Editor cannot send rich text with file attachments", + "packageName": "@azure/communication-react", + "email": "109105353+jpeng-ms@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/packages/chat-component-bindings/src/handlers/createHandlers.ts b/packages/chat-component-bindings/src/handlers/createHandlers.ts index a8a4983d26e..527a6147b17 100644 --- a/packages/chat-component-bindings/src/handlers/createHandlers.ts +++ b/packages/chat-component-bindings/src/handlers/createHandlers.ts @@ -76,7 +76,8 @@ export const createDefaultChatHandlers = memoizeOne( metadata: { ...options?.metadata, fileSharingMetadata: JSON.stringify(options?.attachments) - } + }, + type: options.type }; await chatThreadClient.sendMessage(sendMessageRequest, chatSDKOptions); return;