Use the non-deprecated importRoomKeys method on CryptoApi (#12232)
* Use the non-deprecated importRoomKeys method on CryptoApi * Assert that we have crypto in import dialog
This commit is contained in:
parent
552c65db98
commit
d1928079cc
2 changed files with 30 additions and 2 deletions
|
@ -108,7 +108,7 @@ export default class ImportE2eKeysDialog extends React.Component<IProps, IState>
|
|||
return MegolmExportEncryption.decryptMegolmKeyFile(arrayBuffer, passphrase);
|
||||
})
|
||||
.then((keys) => {
|
||||
return this.props.matrixClient.importRoomKeys(JSON.parse(keys));
|
||||
return this.props.matrixClient.getCrypto()!.importRoomKeys(JSON.parse(keys));
|
||||
})
|
||||
.then(() => {
|
||||
// TODO: it would probably be nice to give some feedback about what we've imported here.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue