Skip to content

Commit 8dbd8f8

Browse files
Add adapter options for CallWithChat JS bundle (#5739) (#5741)
* Add adapter options for CallWithChat JS bundle * Change files
1 parent efbd7ed commit 8dbd8f8

3 files changed

Lines changed: 21 additions & 2 deletions

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": "Add adapter options for CallWithChat JS bundle",
5+
"comment": "Add adapter options for CallWithChat JS bundle",
6+
"packageName": "@azure/communication-react",
7+
"email": "97124699+prabhjot-msft@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": "Add adapter options for CallWithChat JS bundle",
5+
"comment": "Add adapter options for CallWithChat JS bundle",
6+
"packageName": "@azure/communication-react",
7+
"email": "97124699+prabhjot-msft@users.noreply.github.com",
8+
"dependentChangeType": "patch"
9+
}

samples/StaticHtmlComposites/src/callWithChatComposite.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@ initializeIcons();
1010
// locator is a different type of custom locator to aggregate a call locator and a chat thread
1111
// locator = { callLocator: CallLocator, chatThreadId : string }
1212
export const loadCallWithChatComposite = async function (args, htmlElement, props) {
13-
const { userId, token, displayName, endpoint, locator, threadId } = args;
13+
const { userId, token, displayName, endpoint, locator, threadId, callAdapterOptions } = args;
1414
const adapter = await createAzureCommunicationCallWithChatAdapter({
1515
userId,
1616
displayName: displayName ?? 'anonymous',
1717
credential: new AzureCommunicationTokenCredential(token),
1818
endpoint: endpoint,
19-
locator: locator
19+
locator: locator,
20+
callAdapterOptions: callAdapterOptions
2021
});
2122

2223
if (!htmlElement) {

0 commit comments

Comments
 (0)