fix deprecated import/export room keys func

This commit is contained in:
Ajay Bura 2024-09-02 16:20:04 +05:30
parent 56840ad00a
commit 6835b12c13
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ function ExportE2ERoomKeys() {
type: cons.status.IN_FLIGHT,
});
try {
const keys = await mx.exportRoomKeys();
const keys = await mx.getCrypto()?.exportRoomKeys();
if (isMountStore.getItem()) {
setStatus({
isOngoing: true,

View file

@ -46,7 +46,7 @@ function ImportE2ERoomKeys() {
type: cons.status.IN_FLIGHT,
});
}
await mx.importRoomKeys(JSON.parse(keys));
await mx.getCrypto()?.importRoomKeys(JSON.parse(keys));
if (isMountStore.getItem()) {
setStatus({
isOngoing: false,