From 89add8b684ebc1d2ef882f8031b2fe7e22c46c3d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 30 Sep 2021 10:18:03 +0200 Subject: [PATCH] fix sssskey not being migrated properly --- src/matrix/storage/idb/schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/storage/idb/schema.ts b/src/matrix/storage/idb/schema.ts index 220a395ab7..cd22d80357 100644 --- a/src/matrix/storage/idb/schema.ts +++ b/src/matrix/storage/idb/schema.ts @@ -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