Explorar o código

check invalidate metadata

Marino Faggiana %!s(int64=7) %!d(string=hai) anos
pai
achega
bdc58ed184
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      iOSClient/Photos/CCPhotos.m

+ 5 - 0
iOSClient/Photos/CCPhotos.m

@@ -822,6 +822,11 @@
         if (self.detailViewController.isViewLoaded && self.detailViewController.view.window)
             return NO;
     
+    // check if metadata is invalidated
+    if ([[NCManageDatabase sharedInstance] isTableInvalidated:metadata]) {
+        return NO;
+    }
+    
     // ok perform segue
     return YES;
 }