From 2128f67dc3445cefa20ea86655ce7e89f4d5c89a Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 23 Feb 2022 09:54:14 +0000 Subject: [PATCH] Fix bug with ine-way audio after a transfer (#2193) Seems chrome at least will give you a disabled audio track if you already had another user media audio track and disabled it, so make sure our tracks are enabled when we add them. We already did this on one code path but it didn't get moved over when a new code path was added. On the plus side, we now know the reason for the ancient code that had the comment asking what it was for, so update that. --- src/webrtc/call.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index 78c49097b..5f5347f4f 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -585,9 +585,11 @@ export class MatrixCall extends TypedEventEmitter feed.purpose === purpose); @@ -630,7 +632,8 @@ export class MatrixCall extends TypedEventEmitter