Skip to content

Build your personal knowledge base with Trilium Notes

fix note cache - note entity after initialization doesn't contain ciphertext so decryption is not necessary

azivner72d83aa85e38
diff --git a/src/services/note_cache.js b/src/services/note_cache.js
index f5581ee745..dd57bad5ae 100644
--- a/src/services/note_cache.js
+++ b/src/services/note_cache.js
@@ -299,14 +299,7 @@ eventService.subscribe(eventService.ENTITY_CHANGED, async ({entityName, entity})
delete childToParent[note.noteId];
}
else {
- if (note.isProtected) {
- if (protectedSessionService.isProtectedSessionAvailable()) {
- protectedNoteTitles[note.noteId] = protectedSessionService.decryptNoteTitle(note.noteId, note.title);
- }
- }
- else {
- noteTitles[note.noteId] = note.title;
- }
+ noteTitles[note.noteId] = note.title;
}
}
else if (entityName === 'branches') {