forked from mystiq/hydrogen-web
add minimal logging
This commit is contained in:
parent
80a98f04c7
commit
a8022077f6
1 changed files with 7 additions and 4 deletions
|
@ -437,10 +437,13 @@ export class Session {
|
|||
// enable session backup, this requests the latest backup version
|
||||
if (!this._sessionBackup) {
|
||||
if (dehydratedDevice) {
|
||||
await log.wrap("SSSSKeyFromDehydratedDeviceKey", async log => {
|
||||
const ssssKey = await createSSSSKeyFromDehydratedDeviceKey(dehydratedDevice.key, this._storage, this._platform);
|
||||
if (ssssKey) {
|
||||
log.set("success", true);
|
||||
this._writeSSSSKey(ssssKey);
|
||||
}
|
||||
})
|
||||
}
|
||||
const txn = await this._storage.readTxn([
|
||||
this._storage.storeNames.session,
|
||||
|
|
Loading…
Reference in a new issue