1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

Remove unintentionally committed stuff

This commit is contained in:
David Baker
2021-03-16 19:17:04 +00:00
parent 702e16e3df
commit d208a7fc5f

View File

@@ -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) {