use SetupEncryptionBody to show a dialog from "Verify this session"
This commit is contained in:
parent
4ff847c8a3
commit
3e59127d12
2 changed files with 37 additions and 1 deletions
|
@ -18,7 +18,9 @@ import React from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import * as sdk from "../../../index";
|
||||
import { _t } from '../../../languageHandler';
|
||||
import Modal from '../../../Modal';
|
||||
import DeviceListener from '../../../DeviceListener';
|
||||
import SetupEncryptionDialog from "../dialogs/SetupEncryptionDialog";
|
||||
import { accessSecretStorage } from '../../../CrossSigningManager';
|
||||
|
||||
export default class SetupEncryptionToast extends React.PureComponent {
|
||||
|
@ -32,7 +34,12 @@ export default class SetupEncryptionToast extends React.PureComponent {
|
|||
};
|
||||
|
||||
_onSetupClick = async () => {
|
||||
accessSecretStorage();
|
||||
if (this.props.kind === "verify_this_session") {
|
||||
Modal.createTrackedDialog('Verify session', 'Verify session', SetupEncryptionDialog,
|
||||
{}, null, /* priority = */ false, /* static = */ true);
|
||||
} else {
|
||||
accessSecretStorage();
|
||||
}
|
||||
};
|
||||
|
||||
getDescription() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue