Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: send noteId when decrypting real-time locked content

Abdullah Atta81cdfcf61a0b
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);