Skip to content

Commit d208a7f

Browse files
committed
Remove unintentionally committed stuff
1 parent 702e16e commit d208a7f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

src/webrtc/call.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,7 +1528,7 @@ export class MatrixCall extends EventEmitter {
15281528
/*
15291529
* Transfers this call to another user
15301530
*/
1531-
async transfer(targetUserId: string) {
1531+
async transfer(targetUserId: string, targetRoomId?: string) {
15321532
// Fetch the target user's global profile info: their room avatar / displayname
15331533
// could be different in whatever room we shae with them.
15341534
const profileInfo = await this.client.getProfileInfo(targetUserId);
@@ -1545,14 +1545,9 @@ export class MatrixCall extends EventEmitter {
15451545
create_call: replacementId,
15461546
} as MCallReplacesEvent;
15471547

1548-
return this.sendVoipEvent(EventType.CallReplaces, body);
1549-
}
1548+
if (targetRoomId) body.target_room = targetRoomId;
15501549

1551-
/*
1552-
* Transfers this call to the target call, effectively 'joining' the
1553-
* two calls (so the remote parties on each call are connected together).
1554-
*/
1555-
async transferToCall(transferTargetCall?: MatrixCall) {
1550+
return this.sendVoipEvent(EventType.CallReplaces, body);
15561551
}
15571552

15581553
private async terminate(hangupParty: CallParty, hangupReason: CallErrorCode, shouldEmit: boolean) {

0 commit comments

Comments
 (0)