From 96ee5b1256b47971a0e05d978c8bd2908718cd21 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 16 Dec 2022 18:19:36 +0000 Subject: [PATCH] Close all streams when a call ends We didn't close streams in group calls (presumably from back when we used the same stream for all calls rather than cloning?) but this left stray screenshare streams in the mediahandler when a participant left whilst we were screensharing. Fixes https://github.com/vector-im/element-call/issues/742 --- src/webrtc/call.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index e9276f44fc8..d6fde54ed94 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -2475,18 +2475,20 @@ export class MatrixCall extends TypedEventEmitter