refactoring for archived notes handling in note cache

This commit is contained in:
zadam
2020-09-07 00:05:01 +02:00
parent eb4d86f41d
commit 69e36d2677
8 changed files with 22 additions and 29 deletions

View File

@@ -113,8 +113,8 @@ function addImagesToNote(images, note, content) {
new Attribute({
noteId: imageNote.noteId,
type: 'label',
name: 'hideInAutocomplete'
}).save();
name: 'archived'
}).save(); // so that these image notes don't show up in search / autocomplete
new Attribute({
noteId: note.noteId,