Marino Faggiana hace 8 años
padre
commit
8111d3877e
Se han modificado 1 ficheros con 8 adiciones y 2 borrados
  1. 8 2
      iOSClient/FileSystem/CCCoreData.m

+ 8 - 2
iOSClient/FileSystem/CCCoreData.m

@@ -1073,8 +1073,11 @@
         NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(serverUrl == %@) AND (account == %@)", serverUrl, activeAccount];
         TableDirectory *record = [TableDirectory MR_findFirstWithPredicate:predicate inContext:localContext];
         
-        if (record)
+        if (record) {
+            
             record.dateReadDirectory = NULL;
+            record.rev = @"";
+        }
     }];
 }
 
@@ -1084,8 +1087,11 @@
         
         NSArray *records = [TableDirectory MR_findAllInContext:localContext];
         
-        for (TableDirectory *record in records)
+        for (TableDirectory *record in records) {
+            
             record.dateReadDirectory = NULL;
+            record.rev = @"";
+        }
     }];
 }