From 989d69ba16069929de1102f58905b1f8228ef4f5 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 26 Mar 2021 14:21:58 +0000 Subject: [PATCH] Get tbe transfer target / transferee the right way around and also switch to the transfer target's room when we call them --- src/CallHandler.tsx | 2 +- src/components/views/dialogs/InviteDialog.tsx | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/CallHandler.tsx b/src/CallHandler.tsx index 270853865a..be687a4474 100644 --- a/src/CallHandler.tsx +++ b/src/CallHandler.tsx @@ -643,7 +643,7 @@ export default class CallHandler { this.calls.set(roomId, call); if (transferee) { - this.transferees[transferee.callId] = call; + this.transferees[call.callId] = transferee; } this.setCallListeners(call); diff --git a/src/components/views/dialogs/InviteDialog.tsx b/src/components/views/dialogs/InviteDialog.tsx index ad74e7bb02..0f38cb130f 100644 --- a/src/components/views/dialogs/InviteDialog.tsx +++ b/src/components/views/dialogs/InviteDialog.tsx @@ -738,6 +738,12 @@ export default class InviteDialog extends React.PureComponent