From bc5a59339b16c970f05521efb4b8c73216520078 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 31 Jan 2020 11:04:49 +0000 Subject: [PATCH] Send NewSessionReviewDialog through dialogs --- .../views/dialogs/NewSessionReviewDialog.js | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/components/views/dialogs/NewSessionReviewDialog.js b/src/components/views/dialogs/NewSessionReviewDialog.js index da12bbed62..3979855503 100644 --- a/src/components/views/dialogs/NewSessionReviewDialog.js +++ b/src/components/views/dialogs/NewSessionReviewDialog.js @@ -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() {