mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-31 22:51:39 +01:00
await write key
This commit is contained in:
parent
a8022077f6
commit
bffe34fe0a
@ -206,7 +206,7 @@ export class Session {
|
|||||||
this._storage.storeNames.accountData,
|
this._storage.storeNames.accountData,
|
||||||
]);
|
]);
|
||||||
await this._createSessionBackup(key, readTxn);
|
await this._createSessionBackup(key, readTxn);
|
||||||
this._writeSSSSKey(key);
|
await this._writeSSSSKey(key);
|
||||||
this._hasSecretStorageKey.set(true);
|
this._hasSecretStorageKey.set(true);
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
@ -441,7 +441,7 @@ export class Session {
|
|||||||
const ssssKey = await createSSSSKeyFromDehydratedDeviceKey(dehydratedDevice.key, this._storage, this._platform);
|
const ssssKey = await createSSSSKeyFromDehydratedDeviceKey(dehydratedDevice.key, this._storage, this._platform);
|
||||||
if (ssssKey) {
|
if (ssssKey) {
|
||||||
log.set("success", true);
|
log.set("success", true);
|
||||||
this._writeSSSSKey(ssssKey);
|
await this._writeSSSSKey(ssssKey);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user