Browse Source

dev Photos

Marino Faggiana 7 years ago
parent
commit
de6a1325cf
1 changed files with 8 additions and 0 deletions
  1. 8 0
      iOSClient/Photos/CCPhotos.m

+ 8 - 0
iOSClient/Photos/CCPhotos.m

@@ -818,6 +818,14 @@
 {
 {
     // Test
     // Test
     
     
+    // exists
+    tableMetadata *existsMetadata = [[NCManageDatabase sharedInstance] getMetadataWithPredicate:[NSPredicate predicateWithFormat:@"fileID == %@", metadata.fileID]];
+    if (!existsMetadata) {
+        [fileIDHide addObject:metadata.fileID];
+        [self reloadDatasource];
+        return NO;
+    }
+    
     // Background ? exit
     // Background ? exit
     if ([[UIApplication sharedApplication] applicationState] == UIApplicationStateBackground)
     if ([[UIApplication sharedApplication] applicationState] == UIApplicationStateBackground)
         return NO;
         return NO;