From d208a7fc5f04c9aa93a9031c58961737347cd397 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 16 Mar 2021 19:17:04 +0000 Subject: [PATCH] Remove unintentionally committed stuff --- src/webrtc/call.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index 5e06c7a81..94a325d8a 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -1528,7 +1528,7 @@ export class MatrixCall extends EventEmitter { /* * Transfers this call to another user */ - async transfer(targetUserId: string) { + async transfer(targetUserId: string, targetRoomId?: string) { // Fetch the target user's global profile info: their room avatar / displayname // could be different in whatever room we shae with them. const profileInfo = await this.client.getProfileInfo(targetUserId); @@ -1545,14 +1545,9 @@ export class MatrixCall extends EventEmitter { create_call: replacementId, } as MCallReplacesEvent; - return this.sendVoipEvent(EventType.CallReplaces, body); - } + if (targetRoomId) body.target_room = targetRoomId; - /* - * Transfers this call to the target call, effectively 'joining' the - * two calls (so the remote parties on each call are connected together). - */ - async transferToCall(transferTargetCall?: MatrixCall) { + return this.sendVoipEvent(EventType.CallReplaces, body); } private async terminate(hangupParty: CallParty, hangupReason: CallErrorCode, shouldEmit: boolean) {