mirror of
https://github.com/zadam/trilium.git
synced 2025-01-18 04:59:56 +08:00
fix note cache - note entity after initialization doesn't contain ciphertext so decryption is not necessary
This commit is contained in:
parent
8ee80cb5f1
commit
72d83aa85e
1 changed files with 1 additions and 8 deletions
|
@ -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') {
|
||||
|
|
Loading…
Reference in a new issue