Skip to content

Commit ede9f14

Browse files
committed
Don't mute the remote side immediately in PTT calls
This clause was causing all PTT calls to mute the remote side immediately upon ICE connection status changing to 'checking'.
1 parent 6ea2885 commit ede9f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webrtc/call.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1971,7 +1971,7 @@ export class MatrixCall extends TypedEventEmitter<CallEvent, CallEventHandlerMap
19711971
// the peer, since we don't want to block the line if they're not saying anything.
19721972
// Experimenting in Chrome, this happens after 5 or 6 seconds, which is probably
19731973
// fast enough.
1974-
if (this.isPtt && !["connected", "completed"].includes(this.peerConn.iceConnectionState)) {
1974+
if (this.isPtt && ["failed", "disconnected"].includes(this.peerConn.iceConnectionState)) {
19751975
for (const feed of this.getRemoteFeeds()) {
19761976
feed.setAudioMuted(true);
19771977
feed.setVideoMuted(true);

0 commit comments

Comments
 (0)