marinofaggiana 4 роки тому
батько
коміт
8009ac9c58
2 змінених файлів з 0 додано та 15 видалено
  1. 0 6
      iOSClient/AppDelegate.m
  2. 0 9
      iOSClient/Data/NCManageDatabase.swift

+ 0 - 6
iOSClient/AppDelegate.m

@@ -265,12 +265,6 @@
     // close detail
     [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:NCBrandGlobal.shared.notificationCenterMenuDetailClose object:nil];
     
-    // Not Photos Video in library ? then align and Init Auto Upload
-    NSArray *recordsPhotoLibrary = [[NCManageDatabase shared] getPhotoLibraryWithPredicate:[NSPredicate predicateWithFormat:@"account == %@", self.account]];
-    if ([recordsPhotoLibrary count] == 0) {
-        [[NCAutoUpload shared] alignPhotoLibraryWithViewController:nil];
-    }
-    
     // Start Auto Upload
     [[NCAutoUpload shared] initAutoUploadWithViewController:nil];
     

+ 0 - 9
iOSClient/Data/NCManageDatabase.swift

@@ -2483,15 +2483,6 @@ class NCManageDatabase: NSObject {
         return Array(idsAsset)
     }
     
-    @objc func getPhotoLibrary(predicate: NSPredicate) -> [tablePhotoLibrary] {
-        
-        let realm = try! Realm()
-
-        let results = realm.objects(tablePhotoLibrary.self).filter(predicate)
-        
-        return Array(results.map { tablePhotoLibrary.init(value:$0) })
-    }
-    
     //MARK: -
     //MARK: Table Share