marinofaggiana 4 years ago
parent
commit
7f8a70c752
2 changed files with 0 additions and 12 deletions
  1. 0 1
      iOSClient/Networking/NCNetworking.swift
  2. 0 11
      iOSClient/Utility/CCUtility.m

+ 0 - 1
iOSClient/Networking/NCNetworking.swift

@@ -357,7 +357,6 @@ import Queuer
                    
                 guard let extractMetadata = extractMetadata else {
                     NCManageDatabase.sharedInstance.deleteMetadata(predicate: NSPredicate(format: "ocId == %@", metadata.ocId))
-                    
                     completion(Int(k_CCErrorInternalError), "Internal error")
                     return
                 }

+ 0 - 11
iOSClient/Utility/CCUtility.m

@@ -1391,17 +1391,6 @@
     NSDate *creationDate = asset.creationDate;
     NSDate *modificationDate = asset.modificationDate;
     NSArray *resourceArray = [PHAssetResource assetResourcesForAsset:asset];
-    /*
-    BOOL isLocallayAvailable = [[resourceArray.firstObject valueForKey:@"locallyAvailable"] boolValue];
-    if (!isLocallayAvailable) {
-        if (notification) {
-            [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:k_notificationCenter_uploadedFile object:nil userInfo:@{@"metadata": metadata, @"errorCode": @(k_CCErrorInternalError), @"errorDescription": @"_err_asset_not_found_locally_"}];
-        }
-        
-        completion(nil, nil);
-        return;
-    }
-    */
     long fileSize = [[resourceArray.firstObject valueForKey:@"fileSize"] longValue];
 
     dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{