Fixes issue where notes do not display error decrypting if they are errored

This commit is contained in:
Mo Bitar
2019-04-02 09:50:30 -05:00
parent 301514c9a4
commit b8e5b308ea
4 changed files with 3698 additions and 7 deletions

View File

@@ -91,6 +91,15 @@ angular.module('app')
this.reloadNotes = function() {
let notes = this.tag.notes;
// Typically we reload flags via modelManager.addItemSyncObserver,
// but sync observers are not notified of errored items, so we'll do it here instead
for(let note of notes) {
if(note.errorDecrypting) {
this.loadFlagsForNote(note);
}
}
this.setNotes(notes);
}