Fix for issue where deleting an item offline would not immediately remove it from display, and would subsequently not resync the deleted item after connection was restored.

This commit is contained in:
Mo Bitar
2018-04-15 10:29:47 -05:00
parent 0bbc86f94e
commit 75af353e8b
2 changed files with 51 additions and 25 deletions

View File

@@ -136,7 +136,10 @@ class EncryptionHelper {
static decryptMultipleItems(items, keys, throws) {
for (var item of items) {
if(item.deleted == true) {
// 4/15/18: Adding item.content == null clause. We still want to decrypt deleted items incase
// they were marked as dirty but not yet synced. Not yet sure why we had this requirement.
if(item.deleted == true && item.content == null) {
continue;
}