Send NewSessionReviewDialog through dialogs
This commit is contained in:
parent
5866d67c88
commit
bc5a59339b
1 changed files with 17 additions and 17 deletions
|
@ -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 a new issue