Marino Faggiana 6 жил өмнө
parent
commit
80ea059154

+ 1 - 1
iOSClient/Main/CCMain.m

@@ -795,7 +795,7 @@
 {
     [[NCMainCommon sharedInstance] openPhotosPickerViewController:self phAssets:^(NSArray<PHAsset *> * _Nonnull assets) {
         if (assets.count > 0) {
-            dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.1 * NSEC_PER_SEC), dispatch_get_main_queue(), ^(void) {
+            dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 0.2 * NSEC_PER_SEC), dispatch_get_main_queue(), ^(void) {
                 NSString *serverUrl = [appDelegate getTabBarControllerActiveServerUrl];
                 
                 CreateFormUploadAssets *form = [[CreateFormUploadAssets alloc] initWithServerUrl:serverUrl assets:(NSMutableArray *)assets cryptated:NO session:k_upload_session delegate:self];

+ 2 - 1
iOSClient/Main/NCMainCommon.swift

@@ -868,13 +868,14 @@ class NCMainCommon: NSObject {
         configure.maxSelectedAssets = Int(k_pickerControllerMax)
         configure.selectedColor = NCBrandColor.sharedInstance.brand
         
-        let viewController = TLPhotosPickerViewController(withTLPHAssets: { (assets) in // TLAssets
+        let viewController = TLPhotosPickerViewController(withTLPHAssets: { (assets) in
             
             for asset: TLPHAsset in assets {
                 if asset.phAsset != nil {
                     selectedPhAssets.append(asset.phAsset!)
                 }
             }
+            
             phAssets(selectedPhAssets)
             
             }, didCancel: nil)