Browse Source

check invalidate metadata

Marino Faggiana 6 years ago
parent
commit
bdc58ed184
1 changed files with 5 additions and 0 deletions
  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;
 }