clarified comment

pull/255/head
zadam 2023-01-14 23:16:57 +07:00
parent f7bd72ba2f
commit df0f52aff9
1 changed files with 3 additions and 1 deletions

@ -286,7 +286,9 @@ function protectNote(note, 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
note.setContent(content);
}