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 () => {
|
onContinueClick = async () => {
|
||||||
const { userId, device } = this.props;
|
const { userId, device } = this.props;
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
const request = await cli.requestVerification(
|
// 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, {
|
|
||||||
// userId,
|
// userId,
|
||||||
// device,
|
// [verificationMethods.SAS, SHOW_QR_CODE_METHOD],
|
||||||
// }, null, /* priority = */ false, /* static = */ true);
|
// [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() {
|
render() {
|
||||||
|
|
Loading…
Reference in New Issue