Merge pull request #525 from vector-im/bwindels/fix-sssskey-conversion

fix sssskey not being migrated properly
This commit is contained in:
Bruno Windels 2021-09-30 10:19:31 +02:00 committed by GitHub
commit 3fba2c6513
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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