mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
web: send noteId when decrypting real-time locked content
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user