promise for loaded note cache

This commit is contained in:
zadam
2019-10-25 21:57:08 +02:00
parent c72ea2ed60
commit edc23940d0
2 changed files with 11 additions and 1 deletions

View File

@@ -40,6 +40,8 @@ async function getNotes(noteIds) {
protectedSessionService.decryptNotes(notes);
await noteCacheService.loadedPromise;
notes.forEach(note => {
note.isProtected = !!note.isProtected;
note.archived = noteCacheService.isArchived(note.noteId)