Browse Source

new getCameraRollNewItemsWithDatePhoto

Marino Faggiana 7 years ago
parent
commit
4a8cba8775
1 changed files with 4 additions and 10 deletions
  1. 4 10
      iOSClient/AutoUpload/NCAutoUpload.m

+ 4 - 10
iOSClient/AutoUpload/NCAutoUpload.m

@@ -746,17 +746,11 @@
             
             PHFetchResult *newAssetToUpload = [PHAsset fetchAssetsInAssetCollection:collection options:newInstantUploadAssetsFetchOptions];
 
-            for (PHAsset *asset in newAssetToUpload) {
-                
-                NSLog(@"%@ - %@", asset.modificationDate, asset);
-            }
-            
-            PHFetchResult *allAssetToUpload = [PHAsset fetchAssetsInAssetCollection:collection options:nil];
-            for (PHAsset *asset in allAssetToUpload) {
-                
+#ifdef DEBUG
+            for (PHAsset *asset in newAssetToUpload)
                 NSLog(@"%@ > %@ - %@", asset.modificationDate, datePhoto, asset);
-            }
-
+#endif
+            
             return newAssetToUpload;
             
         } else {