瀏覽代碼

Fix https://github.com/nextcloud/ios/issues/336

Marino Faggiana 7 年之前
父節點
當前提交
a37ffa442e
共有 4 個文件被更改,包括 8 次插入4 次删除
  1. 2 2
      iOSClient/AppDelegate.m
  2. 1 1
      iOSClient/Networking/CCNetworking.h
  3. 1 1
      iOSClient/Networking/CCNetworking.m
  4. 4 0
      iOSClient/Text/NCText.swift

+ 2 - 2
iOSClient/AppDelegate.m

@@ -332,7 +332,7 @@
         
         // verify Upload
         [[CCNetworking sharedNetworking] verifyUploadInProgress];
-        [[CCNetworking sharedNetworking] verifyUploadInError];
+        [[CCNetworking sharedNetworking] verifyUploadInErrorOrWait];
 
         if (_activeMain) {
             NSLog(@"[LOG] Request Server Capabilities");
@@ -533,7 +533,7 @@
     
     // In background verify Upload in error
     if ([[UIApplication sharedApplication] applicationState] == UIApplicationStateBackground) {
-        [[CCNetworking sharedNetworking] verifyUploadInError];
+        [[CCNetworking sharedNetworking] verifyUploadInErrorOrWait];
     }
     
     // Start Timer

+ 1 - 1
iOSClient/Networking/CCNetworking.h

@@ -70,7 +70,7 @@
 - (void)verifyDownloadInProgress;
 - (void)verifyDownloadInError:(id)delegate;
 - (void)verifyUploadInProgress;
-- (void)verifyUploadInError;
+- (void)verifyUploadInErrorOrWait;
 
 @end
 

+ 1 - 1
iOSClient/Networking/CCNetworking.m

@@ -1691,7 +1691,7 @@
     }
 }
 
-- (void)verifyUploadInError
+- (void)verifyUploadInErrorOrWait
 {
     NSMutableSet *directoryIDs = [NSMutableSet new];
     

+ 4 - 0
iOSClient/Text/NCText.swift

@@ -151,6 +151,10 @@ class NCText: UIViewController, UITextViewDelegate {
                     appDelegate.activeMain.clearDateReadDataSource(nil)
                 
                     self.dismiss(animated: true, completion: {
+                        
+                        // Send file
+                        CCNetworking.shared().verifyUploadInErrorOrWait()
+                        
                         NotificationCenter.default.post(name: NSNotification.Name(rawValue: "detailBack"), object: nil)
                     })