marinofaggiana 4 ani în urmă
părinte
comite
dd40992770
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 3 2
      iOSClient/Networking/NCNetworking.swift

+ 3 - 2
iOSClient/Networking/NCNetworking.swift

@@ -470,6 +470,8 @@ import Queuer
                     DispatchQueue.global(qos: .background).async {
                             
                         NCUtility.shared.startActivityIndicator(backgroundView: nil, blurEffect: true)
+                        
+                        NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterUploadStartFile, userInfo: ["ocId": ocId])
                             
                         for fileName in filesNames {
                                                         
@@ -492,8 +494,7 @@ import Queuer
                             }, taskHandler: { (task) in
                                 
                                 NCManageDatabase.shared.setMetadataSession(ocId: ocId, sessionError: "", sessionTaskIdentifier: task.taskIdentifier, status: NCGlobal.shared.metadataStatusUploading)
-                                NotificationCenter.default.postOnMainThread(name: NCGlobal.shared.notificationCenterUploadStartFile, userInfo: ["ocId": ocId])
-                                
+                               
                             }, progressHandler: { (_) in                               
                                 
                             }) { (_, _, _, _, _, _, _, errorCode, errorDescription) in