Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 989d69b

Browse files
committed
Get tbe transfer target / transferee the right way around
and also switch to the transfer target's room when we call them
1 parent 82ba546 commit 989d69b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/CallHandler.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ export default class CallHandler {
643643

644644
this.calls.set(roomId, call);
645645
if (transferee) {
646-
this.transferees[transferee.callId] = call;
646+
this.transferees[call.callId] = transferee;
647647
}
648648

649649
this.setCallListeners(call);

src/components/views/dialogs/InviteDialog.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,12 @@ export default class InviteDialog extends React.PureComponent<IInviteDialogProps
738738
room_id: dmRoomId,
739739
transferee: this.props.call,
740740
});
741+
dis.dispatch({
742+
action: 'view_room',
743+
room_id: dmRoomId,
744+
should_peek: false,
745+
joining: false,
746+
});
741747
this.props.onFinished();
742748
} else {
743749
this.setState({busy: true});

0 commit comments

Comments
 (0)