File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments