mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-02-12 08:43:38 +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,
|
type: cons.status.IN_FLIGHT,
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
const keys = await mx.exportRoomKeys();
|
const keys = await mx.getCrypto()?.exportRoomKeys();
|
||||||
if (isMountStore.getItem()) {
|
if (isMountStore.getItem()) {
|
||||||
setStatus({
|
setStatus({
|
||||||
isOngoing: true,
|
isOngoing: true,
|
||||||
|
|
|
@ -46,7 +46,7 @@ function ImportE2ERoomKeys() {
|
||||||
type: cons.status.IN_FLIGHT,
|
type: cons.status.IN_FLIGHT,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
await mx.importRoomKeys(JSON.parse(keys));
|
await mx.getCrypto()?.importRoomKeys(JSON.parse(keys));
|
||||||
if (isMountStore.getItem()) {
|
if (isMountStore.getItem()) {
|
||||||
setStatus({
|
setStatus({
|
||||||
isOngoing: false,
|
isOngoing: false,
|
||||||
|
|
Loading…
Reference in a new issue