mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-01-31 09:49:10 +01:00
fix deprecated import/export room keys func
This commit is contained in:
parent
56840ad00a
commit
6835b12c13
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue