Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Commit 231b404

Browse files
committed
fix the upset CI
1 parent 4492627 commit 231b404

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/components/views/dialogs/security/CreateCrossSigningDialog.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ limitations under the License.
1616
*/
1717

1818
import React from 'react';
19+
import { CrossSigningKeys } from 'matrix-js-sdk/src/client';
20+
1921
import { MatrixClientPeg } from '../../../../MatrixClientPeg';
2022
import { _t } from '../../../../languageHandler';
2123
import Modal from '../../../../Modal';
@@ -71,7 +73,7 @@ export default class CreateCrossSigningDialog extends React.PureComponent<IProps
7173

7274
private async queryKeyUploadAuth(): Promise<void> {
7375
try {
74-
await MatrixClientPeg.get().uploadDeviceSigningKeys(null, {});
76+
await MatrixClientPeg.get().uploadDeviceSigningKeys(null, {} as CrossSigningKeys);
7577
// We should never get here: the server should always require
7678
// UI auth to upload device signing keys. If we do, we upload
7779
// no keys which would be a no-op.

src/stores/SetupEncryptionStore.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ limitations under the License.
1616

1717
import EventEmitter from 'events';
1818
import { VerificationRequest } from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest";
19-
import { IKeyBackupVersion } from "matrix-js-sdk/src/crypto/keybackup";
19+
import { IKeyBackupInfo } from "matrix-js-sdk/src/crypto/keybackup";
2020
import { ISecretStorageKeyInfo } from "matrix-js-sdk/src/matrix";
21+
import { PHASE_DONE as VERIF_PHASE_DONE } from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest";
22+
2123
import { MatrixClientPeg } from '../MatrixClientPeg';
2224
import { accessSecretStorage, AccessCancelledError } from '../SecurityManager';
23-
import { PHASE_DONE as VERIF_PHASE_DONE } from "matrix-js-sdk/src/crypto/verification/request/VerificationRequest";
2425

2526
export enum Phase {
2627
Loading = 0,
@@ -35,7 +36,7 @@ export class SetupEncryptionStore extends EventEmitter {
3536
private started: boolean;
3637
public phase: Phase;
3738
public verificationRequest: VerificationRequest;
38-
public backupInfo: IKeyBackupVersion;
39+
public backupInfo: IKeyBackupInfo;
3940
public keyId: string;
4041
public keyInfo: ISecretStorageKeyInfo;
4142
public hasDevicesToVerifyAgainst: boolean;

0 commit comments

Comments
 (0)