Get tbe transfer target / transferee the right way around

and also switch to the transfer target's room when we call them
This commit is contained in:
David Baker 2021-03-26 14:21:58 +00:00
parent 82ba546142
commit 989d69ba16
2 changed files with 7 additions and 1 deletions

View file

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

View file

@ -738,6 +738,12 @@ export default class InviteDialog extends React.PureComponent<IInviteDialogProps
room_id: dmRoomId,
transferee: this.props.call,
});
dis.dispatch({
action: 'view_room',
room_id: dmRoomId,
should_peek: false,
joining: false,
});
this.props.onFinished();
} else {
this.setState({busy: true});