mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
clarified comment
This commit is contained in:
parent
f7bd72ba2f
commit
df0f52aff9
@ -286,7 +286,9 @@ function protectNote(note, protect) {
|
|||||||
|
|
||||||
note.isProtected = protect;
|
note.isProtected = protect;
|
||||||
|
|
||||||
if (content !== null) { // see https://github.com/zadam/trilium/issues/3523
|
// see https://github.com/zadam/trilium/issues/3523
|
||||||
|
// IIRC a zero-sized buffer can be returned as null from the database
|
||||||
|
if (content !== null) {
|
||||||
// this will force de/encryption
|
// this will force de/encryption
|
||||||
note.setContent(content);
|
note.setContent(content);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user