mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
Use new types
This commit is contained in:
parent
70a3679d43
commit
642405dbd0
1 changed files with 4 additions and 3 deletions
|
@ -19,13 +19,14 @@ import { _t } from '../../../languageHandler';
|
||||||
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
import { MatrixClientPeg } from '../../../MatrixClientPeg';
|
||||||
import Modal from '../../../Modal';
|
import Modal from '../../../Modal';
|
||||||
import VerificationRequestDialog from '../../views/dialogs/VerificationRequestDialog';
|
import VerificationRequestDialog from '../../views/dialogs/VerificationRequestDialog';
|
||||||
import * as sdk from '../../../index';
|
|
||||||
import { SetupEncryptionStore, Phase } from '../../../stores/SetupEncryptionStore';
|
import { SetupEncryptionStore, Phase } from '../../../stores/SetupEncryptionStore';
|
||||||
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
import { replaceableComponent } from "../../../utils/replaceableComponent";
|
||||||
import { ISecretStorageKeyInfo } from 'matrix-js-sdk';
|
import { ISecretStorageKeyInfo } from 'matrix-js-sdk';
|
||||||
import EncryptionPanel from "../../views/right_panel/EncryptionPanel"
|
import EncryptionPanel from "../../views/right_panel/EncryptionPanel"
|
||||||
import AccessibleButton from '../../views/elements/AccessibleButton';
|
import AccessibleButton from '../../views/elements/AccessibleButton';
|
||||||
import Spinner from '../../views/elements/Spinner';
|
import Spinner from '../../views/elements/Spinner';
|
||||||
|
import { IKeyBackupInfo } from "matrix-js-sdk/src/crypto/keybackup";
|
||||||
|
import { VerificationRequest } from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest";
|
||||||
|
|
||||||
function keyHasPassphrase(keyInfo: ISecretStorageKeyInfo): boolean {
|
function keyHasPassphrase(keyInfo: ISecretStorageKeyInfo): boolean {
|
||||||
return Boolean(
|
return Boolean(
|
||||||
|
@ -41,8 +42,8 @@ interface IProps {
|
||||||
|
|
||||||
interface IState {
|
interface IState {
|
||||||
phase: Phase;
|
phase: Phase;
|
||||||
verificationRequest: any;
|
verificationRequest: VerificationRequest;
|
||||||
backupInfo: any;
|
backupInfo: IKeyBackupInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
@replaceableComponent("structures.auth.SetupEncryptionBody")
|
@replaceableComponent("structures.auth.SetupEncryptionBody")
|
||||||
|
|
Loading…
Reference in a new issue