Skip to content

Commit

Permalink
Actually check audio sender too
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed Jan 25, 2023
1 parent b09b33e commit a18d4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webrtc/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export class MatrixCall extends TypedEventEmitter<CallEvent, CallEventHandlerMap
}

private get hasUserMediaAudioSender(): boolean {
return this.transceivers.has(getTransceiverKey(SDPStreamMetadataPurpose.Usermedia, "audio"));
return Boolean(this.transceivers.get(getTransceiverKey(SDPStreamMetadataPurpose.Usermedia, "audio"))?.sender);
}

private get hasUserMediaVideoSender(): boolean {
Expand Down

0 comments on commit a18d4e2

Please sign in to comment.