marinofaggiana 4 жил өмнө
parent
commit
df96c01f10

+ 1 - 1
iOSClient/AppDelegate.m

@@ -213,7 +213,7 @@
     [[NCAutoUpload sharedInstance] initStateAutoUpload];
     
     // Read active directory
-    [self.activeFiles reloadDataSourceNetworkWithForced:true];
+    [[NSNotificationCenter defaultCenter] postNotificationOnMainThreadName:k_notificationCenter_reloadDataSourceNetworkForced object:nil];
     
     // Required unsubscribing / subscribing
     [self pushNotification];

+ 1 - 1
iOSClient/CCGlobal.h

@@ -315,7 +315,7 @@
 #define k_notificationCenter_closeRichWorkspaceWebView      @"closeRichWorkspaceWebView"
 
 #define k_notificationCenter_reloadDataSource               @"reloadDataSource"                 // userInfo: ocId?, serverUrl?
-#define k_notificationCenter_reloadDataSourceNetworkForced  @"reloadDataSourceNetworkForced"    // userInfo: serverUrl
+#define k_notificationCenter_reloadDataSourceNetworkForced  @"reloadDataSourceNetworkForced"    // userInfo: serverUrl?
 
 #define k_notificationCenter_mediaFileNotFound              @"mediaFileNotFound"                // userInfo: metadata
 #define k_notificationCenter_changeStatusFolderE2EE         @"changeStatusFolderE2EE"           // userInfo: serverUrl

+ 2 - 0
iOSClient/Main/Colleaction Common/NCCollectionViewCommon.swift

@@ -274,6 +274,8 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
                     reloadDataSourceNetwork(forced: true)
                 }
             }
+        } else {
+            reloadDataSourceNetwork(forced: true)
         }
     }