Skip to content

Commit 6f13869

Browse files
authored
fix: joinCall set correct mute state based on microphoneOn parameter (#2131)
1 parent f3e3bd9 commit 6f13869

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "patch",
3+
"comment": "fix: joinCall set correct mute state based on microphoneOn parameter",
4+
"packageName": "@internal/react-composites",
5+
"email": "fanjin1989@gmail.com",
6+
"dependentChangeType": "patch"
7+
}

packages/react-composites/src/composites/CallComposite/adapter/AzureCommunicationCallAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ export class AzureCommunicationCallAdapter implements CallAdapter {
299299
}
300300

301301
return this.teeErrorToEventEmitter(() => {
302-
const audioOptions: AudioOptions = { muted: microphoneOn ?? !this.getState().isLocalPreviewMicrophoneEnabled };
302+
const audioOptions: AudioOptions = { muted: !(microphoneOn ?? this.getState().isLocalPreviewMicrophoneEnabled) };
303303
// TODO: find a way to expose stream to here
304304
const videoOptions = { localVideoStreams: this.localStream ? [this.localStream] : undefined };
305305

0 commit comments

Comments
 (0)