From 8712dd286f7aebf026681477f79f59dd42cef641 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 b03f1eeef..4cf2bb15a 100644 --- a/apps/web/src/components/editor/index.tsx +++ b/apps/web/src/components/editor/index.tsx @@ -141,7 +141,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);