diff --git a/frontend/src/lib/e2ee.ts b/frontend/src/lib/e2ee.ts index 763858a..f0d5c0f 100644 --- a/frontend/src/lib/e2ee.ts +++ b/frontend/src/lib/e2ee.ts @@ -46,12 +46,6 @@ export function isUnlocked(): boolean { return !!privKey; } -export function lock(): void { - privKey = null; - convKeys.clear(); - emitUnlock(); -} - // --- IndexedDB (per-device persistence of the unlocked private key) --- const DB_NAME = "siftlode-e2ee"; const STORE = "privkeys"; @@ -127,7 +121,11 @@ export async function setup(userId: number, passphrase: string): Promise