From 747a4866e2a42db83b8751fbd7bc139cfcab2051 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 31 Jan 2020 12:21:49 +0100 Subject: [PATCH] indenting --- .../views/dialogs/NewSessionReviewDialog.js | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/components/views/dialogs/NewSessionReviewDialog.js b/src/components/views/dialogs/NewSessionReviewDialog.js index 3979855503..41b881a1f2 100644 --- a/src/components/views/dialogs/NewSessionReviewDialog.js +++ b/src/components/views/dialogs/NewSessionReviewDialog.js @@ -43,7 +43,20 @@ export default class NewSessionReviewDialog extends React.PureComponent { onContinueClick = async () => { const { userId, device } = this.props; 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, // [verificationMethods.SAS, SHOW_QR_CODE_METHOD], // [device.deviceId], @@ -56,11 +69,6 @@ export default class NewSessionReviewDialog extends React.PureComponent { // member: cli.getUser(request.otherUserId), // }, // }); - - Modal.createTrackedDialog('New Session Verification', 'Starting dialog', DeviceVerifyDialog, { - userId, - device, - }, null, /* priority = */ false, /* static = */ true); } render() {