Send NewSessionReviewDialog through dialogs

This commit is contained in:
Travis Ralston 2020-01-31 11:04:49 +00:00 committed by Bruno Windels
parent 5866d67c88
commit bc5a59339b

View file

@ -43,24 +43,24 @@ export default class NewSessionReviewDialog extends React.PureComponent {
onContinueClick = async () => {
const { userId, device } = this.props;
const cli = MatrixClientPeg.get();
const request = await cli.requestVerification(
userId,
[verificationMethods.SAS, SHOW_QR_CODE_METHOD],
[device.deviceId],
);
dis.dispatch({
action: "set_right_panel_phase",
phase: RIGHT_PANEL_PHASES.EncryptionPanel,
refireParams: {
verificationRequest: request,
member: cli.getUser(request.otherUserId),
},
});
// Modal.createTrackedDialog('New Session Verification', 'Starting dialog', DeviceVerifyDialog, {
// const request = await cli.requestVerification(
// userId,
// device,
// }, null, /* priority = */ false, /* static = */ true);
// [verificationMethods.SAS, SHOW_QR_CODE_METHOD],
// [device.deviceId],
// );
// dis.dispatch({
// action: "set_right_panel_phase",
// phase: RIGHT_PANEL_PHASES.EncryptionPanel,
// refireParams: {
// verificationRequest: request,
// member: cli.getUser(request.otherUserId),
// },
// });
Modal.createTrackedDialog('New Session Verification', 'Starting dialog', DeviceVerifyDialog, {
userId,
device,
}, null, /* priority = */ false, /* static = */ true);
}
render() {