From 746d6acb364eb56fc76ddf351388456d5f220432 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 30 May 2022 14:52:04 +0100 Subject: [PATCH] Mute disconnected peers in PTT mode When we lose ICE connection to peers, set the status of their feeds to muted so to end their talking session. For https://github.com/vector-im/element-call/issues/331 --- src/webrtc/call.ts | 18 +++++++++++++++++- src/webrtc/groupCall.ts | 5 +++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index fe02b4528cb..8c736b252bc 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -292,6 +292,10 @@ export class MatrixCall extends TypedEventEmitter; @@ -1876,9 +1880,10 @@ export class MatrixCall extends TypedEventEmitter { diff --git a/src/webrtc/groupCall.ts b/src/webrtc/groupCall.ts index 2110050525f..0b54e3a9809 100644 --- a/src/webrtc/groupCall.ts +++ b/src/webrtc/groupCall.ts @@ -610,6 +610,9 @@ export class GroupCall extends TypedEventEmitter feed.purpose === SDPStreamMetadataPurpose.Screenshare);