From ea383c80f2a8e329f1298bcbd41ad6463a2ac884 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Tue, 28 Nov 2023 13:55:59 +0500 Subject: [PATCH] web: send noteId when decrypting real-time locked content --- apps/web/src/components/editor/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/editor/index.tsx b/apps/web/src/components/editor/index.tsx index 31d1f2326..e8909b60d 100644 --- a/apps/web/src/components/editor/index.tsx +++ b/apps/web/src/components/editor/index.tsx @@ -138,7 +138,7 @@ export default function EditorManager({ let content: string | null = null; if (locked && isEncryptedContent(item)) { const result = await db.vault - .decryptContent(item) + .decryptContent(item, item.noteId) .catch(() => undefined); if (result) content = result.data; else EV.publish(EVENTS.vaultLocked);