mirror of https://github.com/vector-im/riot-web
Send NewSessionReviewDialog through dialogs
parent
5866d67c88
commit
bc5a59339b
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue