mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-02 04:01:43 +02:00
web: send noteId when decrypting real-time locked content
This commit is contained in:
committed by
Abdullah Atta
parent
d836170b6f
commit
8712dd286f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user