Skip to content

Commit b6c5aa2

Browse files
authored
[Chat] Fixed the issue where Rich Text Editor doesn't send HTML messages if there are attached files (#4747)
1 parent bae8c29 commit b6c5aa2

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "File Sharing",
5+
"comment": "Fixed the issue where Rich Text Editor cannot send rich text with file attachments",
6+
"packageName": "@azure/communication-react",
7+
"email": "109105353+jpeng-ms@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "File Sharing",
5+
"comment": "Fixed the issue where Rich Text Editor cannot send rich text with file attachments",
6+
"packageName": "@azure/communication-react",
7+
"email": "109105353+jpeng-ms@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}

packages/chat-component-bindings/src/handlers/createHandlers.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ export const createDefaultChatHandlers = memoizeOne(
7676
metadata: {
7777
...options?.metadata,
7878
fileSharingMetadata: JSON.stringify(options?.attachments)
79-
}
79+
},
80+
type: options.type
8081
};
8182
await chatThreadClient.sendMessage(sendMessageRequest, chatSDKOptions);
8283
return;

0 commit comments

Comments
 (0)