mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-31 22:51:39 +01:00
add minimal logging
This commit is contained in:
parent
80a98f04c7
commit
a8022077f6
@ -437,10 +437,13 @@ export class Session {
|
|||||||
// enable session backup, this requests the latest backup version
|
// enable session backup, this requests the latest backup version
|
||||||
if (!this._sessionBackup) {
|
if (!this._sessionBackup) {
|
||||||
if (dehydratedDevice) {
|
if (dehydratedDevice) {
|
||||||
const ssssKey = await createSSSSKeyFromDehydratedDeviceKey(dehydratedDevice.key, this._storage, this._platform);
|
await log.wrap("SSSSKeyFromDehydratedDeviceKey", async log => {
|
||||||
if (ssssKey) {
|
const ssssKey = await createSSSSKeyFromDehydratedDeviceKey(dehydratedDevice.key, this._storage, this._platform);
|
||||||
this._writeSSSSKey(ssssKey);
|
if (ssssKey) {
|
||||||
}
|
log.set("success", true);
|
||||||
|
this._writeSSSSKey(ssssKey);
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
const txn = await this._storage.readTxn([
|
const txn = await this._storage.readTxn([
|
||||||
this._storage.storeNames.session,
|
this._storage.storeNames.session,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user