From 72d83aa85e38fa9547857bb2f2968c8bd0443bb1 Mon Sep 17 00:00:00 2001 From: azivner Date: Fri, 30 Nov 2018 15:51:55 +0100 Subject: [PATCH] fix note cache - note entity after initialization doesn't contain ciphertext so decryption is not necessary --- src/services/note_cache.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/services/note_cache.js b/src/services/note_cache.js index f5581ee74..dd57bad5a 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') {