From 080426dfddb1744db3091bbc7de009bb70c8d32b Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 21 Feb 2022 17:11:14 +0000 Subject: [PATCH] Fix camera stuck on after call transfer (#2188) The 'Replaced' error code is handled specially (for better or worse) so was leaving the capture feeds open. Use the 'transfer' hangup reason which is what we should be using anyway (and were, on the line below for the other call...) --- src/webrtc/call.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index da4dc8a4b..e96928c0d 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -1943,7 +1943,7 @@ export class MatrixCall extends EventEmitter { await this.sendVoipEvent(EventType.CallReplaces, bodyToTransferee); - await this.terminate(CallParty.Local, CallErrorCode.Replaced, true); + await this.terminate(CallParty.Local, CallErrorCode.Transfered, true); await transferTargetCall.terminate(CallParty.Local, CallErrorCode.Transfered, true); }