@@ -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];
@@ -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
@@ -274,6 +274,8 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
reloadDataSourceNetwork(forced: true)
}
+ } else {
+ reloadDataSourceNetwork(forced: true)