marinofaggiana 4 anos atrás
pai
commit
e4174f975b
1 arquivos alterados com 9 adições e 4 exclusões
  1. 9 4
      iOSClient/AutoUpload/NCAutoUpload.m

+ 9 - 4
iOSClient/AutoUpload/NCAutoUpload.m

@@ -371,10 +371,15 @@
     
     // Create the folder for auto upload & if request the subfolders
     if ([[NCNetworking shared] createFoloderWithAssets:newAssetToUpload selector:selector useSubFolder:tableAccount.autoUploadCreateSubfolder account:appDelegate.activeAccount url:appDelegate.activeUrl]) {
-        [[NCContentPresenter shared] messageNotification:@"_error_" description:@"_error_createsubfolders_upload_" delay:k_dismissAfterSecond type:messageTypeError errorCode:k_CCErrorInternalError forced:true];
-        dispatch_async(dispatch_get_main_queue(), ^{
-            [_hud hideHud];
-        });
+        
+        if ([selector isEqualToString:selectorUploadAutoUploadAll]) {
+        
+            [[NCContentPresenter shared] messageNotification:@"_error_" description:@"_error_createsubfolders_upload_" delay:k_dismissAfterSecond type:messageTypeError errorCode:k_CCErrorInternalError forced:true];
+            dispatch_async(dispatch_get_main_queue(), ^{
+                [_hud hideHud];
+            });
+        }
+        
         return;
     }