Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit f1fbff9

Browse files
committed
Assert that we have crypto in import dialog
1 parent a0b0a93 commit f1fbff9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/async-components/views/dialogs/security/ImportE2eKeysDialog.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export default class ImportE2eKeysDialog extends React.Component<IProps, IState>
108108
return MegolmExportEncryption.decryptMegolmKeyFile(arrayBuffer, passphrase);
109109
})
110110
.then((keys) => {
111-
return this.props.matrixClient.getCrypto()?.importRoomKeys(JSON.parse(keys));
111+
return this.props.matrixClient.getCrypto()!.importRoomKeys(JSON.parse(keys));
112112
})
113113
.then(() => {
114114
// TODO: it would probably be nice to give some feedback about what we've imported here.

0 commit comments

Comments
 (0)