From 6be99d639792b73e86ce996af0ef5604118faa88 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 30 Mar 2021 12:13:28 +0100 Subject: [PATCH] Terminate the other call too --- src/webrtc/call.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index 4f8290a85..909fc87d8 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -1589,6 +1589,7 @@ export class MatrixCall extends EventEmitter { await this.sendVoipEvent(EventType.CallReplaces, bodyToTransferee); await this.terminate(CallParty.Local, CallErrorCode.Replaced, true); + await transferTargetCall.terminate(CallParty.Local, CallErrorCode.Replaced, true); } private async terminate(hangupParty: CallParty, hangupReason: CallErrorCode, shouldEmit: boolean) {