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:
Andy Balaam 2024-02-06 14:46:15 +00:00 committed by GitHub
parent cdfcd37b94
commit a664172a22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 6 deletions

View file

@ -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);