Use the non-deprecated exportRoomKeys method on CryptoApi (#12231)
* Expand the export test to check encryptMegolmKeyFile was called * Use the non-deprecated exportRoomKeys method on CryptoApi
This commit is contained in:
parent
cdfcd37b94
commit
a664172a22
2 changed files with 27 additions and 6 deletions
|
@ -109,7 +109,7 @@ export default class ExportE2eKeysDialog extends React.Component<IProps, IState>
|
|||
// asynchronous ones.
|
||||
Promise.resolve()
|
||||
.then(() => {
|
||||
return this.props.matrixClient.exportRoomKeys();
|
||||
return this.props.matrixClient.getCrypto()!.exportRoomKeys();
|
||||
})
|
||||
.then((k) => {
|
||||
return MegolmExportEncryption.encryptMegolmKeyFile(JSON.stringify(k), passphrase);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue