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,9 @@
{
"type": "patch",
"area": "fix",
"workstream": "CallWithChatAdapter events",
"comment": "Fix error when listening to capabilitiesChanged and spotlightChanged events from AzureCommunicationCallWithChatAdapter",
"packageName": "@azure/communication-react",
"email": "79475487+mgamis-msft@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"type": "patch",
"area": "fix",
"workstream": "CallWithChatAdapter events",
"comment": "Fix error when listening to capabilitiesChanged and spotlightChanged events from AzureCommunicationCallWithChatAdapter",
"packageName": "@azure/communication-react",
"email": "79475487+mgamis-msft@users.noreply.github.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,12 @@ export class AzureCommunicationCallWithChatAdapter implements CallWithChatAdapte
case 'chatInitialized':
this.emitter.on(event, listener);
break;
case 'capabilitiesChanged':
this.callAdapter.on('capabilitiesChanged', listener);
break;
case 'spotlightChanged':
this.callAdapter.on('spotlightChanged', listener);
break;
default:
throw `Unknown AzureCommunicationCallWithChatAdapter Event: ${event}`;
}
Expand Down Expand Up @@ -943,6 +949,12 @@ export class AzureCommunicationCallWithChatAdapter implements CallWithChatAdapte
case 'chatInitialized':
this.emitter.off(event, listener);
break;
case 'capabilitiesChanged':
this.callAdapter.off('capabilitiesChanged', listener);
break;
case 'spotlightChanged':
this.callAdapter.off('spotlightChanged', listener);
break;
default:
throw `Unknown AzureCommunicationCallWithChatAdapter Event: ${event}`;
}
Expand Down