Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix createAzureCommunicationCallWithChatAdapterFromClients for breakout rooms #5683

Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "patch",
"area": "fix",
"workstream": "Breakout rooms",
"comment": "Ensure createChatAdapterCallback is set for AzureCommunicationCallWithChatAdapter in createAzureCommunicationCallWithChatAdapterFromClients so that a new ChatAdapter can be created when joining a breakout room",
"packageName": "@azure/communication-react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "patch",
"area": "fix",
"workstream": "Breakout rooms",
"comment": "Ensure createChatAdapterCallback is set for AzureCommunicationCallWithChatAdapter in createAzureCommunicationCallWithChatAdapterFromClients so that a new ChatAdapter can be created when joining a breakout room",
"packageName": "@azure/communication-react",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,13 @@ export const createAzureCommunicationCallWithChatAdapterFromClients = async ({
callAdapterOptions
);
const chatAdapter = await createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient);
return new AzureCommunicationCallWithChatAdapter(callAdapter, chatAdapter);
/* @conditional-compile-remove(breakout-rooms) */
const callWithChatAdapter = new AzureCommunicationCallWithChatAdapter(callAdapter, chatAdapter);
/* @conditional-compile-remove(breakout-rooms) */
callWithChatAdapter.setCreateChatAdapterCallback((threadId: string) =>
createAzureCommunicationChatAdapterFromClient(chatClient, chatClient.getChatThreadClient(threadId))
);
return callWithChatAdapter;
};

/**
Expand Down
Loading