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
|
@ -298,17 +298,10 @@ eventService.subscribe(eventService.ENTITY_CHANGED, async ({entityName, entity})
|
||||||
delete noteTitles[note.noteId];
|
delete noteTitles[note.noteId];
|
||||||
delete childToParent[note.noteId];
|
delete childToParent[note.noteId];
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
if (note.isProtected) {
|
|
||||||
if (protectedSessionService.isProtectedSessionAvailable()) {
|
|
||||||
protectedNoteTitles[note.noteId] = protectedSessionService.decryptNoteTitle(note.noteId, note.title);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
noteTitles[note.noteId] = note.title;
|
noteTitles[note.noteId] = note.title;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else if (entityName === 'branches') {
|
else if (entityName === 'branches') {
|
||||||
const branch = entity;
|
const branch = entity;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue