Dont sync items that have error decrypting

This commit is contained in:
Mo Bitar
2017-11-05 23:22:18 -06:00
parent f07a79f845
commit 737a2d371c

View File

@@ -302,7 +302,8 @@ class ModelManager {
}
getDirtyItems() {
return this.items.filter(function(item){return item.dirty == true && !item.dummy})
// Items that have errorDecrypting should never be synced back up to the server
return this.items.filter(function(item){return item.dirty == true && !item.dummy && !item.errorDecrypting})
}
clearDirtyItems(items) {