Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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,7 @@
{
"type": "prerelease",
"comment": "Immediately fetch initial chat data when creating azure communication chat adapter",
"packageName": "@internal/react-composites",
"email": "2684369+JamesBurnside@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,11 @@ export const createAzureCommunicationChatAdapter = async ({
credential: credential
});
const chatThreadClient = await chatClient.getChatThreadClient(threadId);
await chatClient.startRealtimeNotifications();

chatClient.startRealtimeNotifications();
const adapter = await createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient);
await adapter.fetchInitialData();

const adapter = createAzureCommunicationChatAdapterFromClient(chatClient, chatThreadClient);
return adapter;
};

Expand Down