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

This commit is contained in:
azivner 2018-11-30 15:51:55 +01:00
parent 8ee80cb5f1
commit 72d83aa85e

View file

@ -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') {