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:
parent
82ba546142
commit
989d69ba16
2 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -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});
|
||||
|
|
Loading…
Reference in a new issue