Call the AsJson forms of import and exportRoomKeys (#12233)
This commit is contained in:
parent
44e18b188c
commit
35ad92bf54
4 changed files with 9 additions and 9 deletions
|
@ -109,10 +109,10 @@ export default class ExportE2eKeysDialog extends React.Component<IProps, IState>
|
|||
// asynchronous ones.
|
||||
Promise.resolve()
|
||||
.then(() => {
|
||||
return this.props.matrixClient.getCrypto()!.exportRoomKeys();
|
||||
return this.props.matrixClient.getCrypto()!.exportRoomKeysAsJson();
|
||||
})
|
||||
.then((k) => {
|
||||
return MegolmExportEncryption.encryptMegolmKeyFile(JSON.stringify(k), passphrase);
|
||||
return MegolmExportEncryption.encryptMegolmKeyFile(k, passphrase);
|
||||
})
|
||||
.then((f) => {
|
||||
const blob = new Blob([f], {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue