fix sssskey not being migrated properly

This commit is contained in:
Bruno Windels 2021-09-30 10:18:03 +02:00
parent 31a70e1b8e
commit 89add8b684

View file

@ -216,7 +216,7 @@ async function changeSSSSKeyPrefix(db: IDBDatabase, txn: IDBTransaction) {
const session = txn.objectStore("session");
const ssssKey = await reqAsPromise(session.get("ssssKey"));
if (ssssKey) {
session.put({key: `${SESSION_E2EE_KEY_PREFIX}ssssKey`, value: ssssKey});
session.put({key: `${SESSION_E2EE_KEY_PREFIX}ssssKey`, value: ssssKey.value});
}
}
// v13