marinofaggiana 4 years ago
parent
commit
1d2aa6c3e8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      iOSClient/Favorites/CCFavorites.m

+ 3 - 3
iOSClient/Favorites/CCFavorites.m

@@ -104,10 +104,10 @@
     // Active Main
     // Active Main
     appDelegate.activeFavorites = self;
     appDelegate.activeFavorites = self;
 
 
-    [self reloadDatasource];
-
     if (self.serverUrl == nil && appDelegate.activeAccount.length > 0) {
     if (self.serverUrl == nil && appDelegate.activeAccount.length > 0) {
-        [[NCNetworking shared] listingFavoritescompletionWithCompletion:^(NSString *account, NSArray* metadatas, NSInteger errorCode, NSString *errorDescription) { }];
+        [[NCNetworking shared] listingFavoritescompletionWithCompletion:^(NSString *account, NSArray* metadatas, NSInteger errorCode, NSString *errorDescription) {
+             [self reloadDatasource];
+        }];
     }
     }
 }
 }