Skip to content

Instantly share code, notes, and snippets.

@MilanKaur-01
Created February 6, 2023 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MilanKaur-01/9192930af5d918f6b80535b112feeab2 to your computer and use it in GitHub Desktop.
Save MilanKaur-01/9192930af5d918f6b80535b112feeab2 to your computer and use it in GitHub Desktop.
const callAdapterArgs = useMemo(() => {
if (userId && credential && displayName && teamsMeetingLink) {
return {
userId: fromFlatCommunicationIdentifier(userId)
as CommunicationUserIdentifier,
displayName,
credential,
locator: { meetingLink: teamsMeetingLink },
}
}
return {};
}, [userId, credential, displayName, teamsMeetingLink]);
const callAdapter = useAzureCommunicationCallAdapter(callAdapterArgs);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment