marinofaggiana 4 years ago
parent
commit
84fb7f79ac
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Favorites/NCFavorite.swift

+ 1 - 1
iOSClient/Favorites/NCFavorite.swift

@@ -600,7 +600,7 @@ extension NCFavorite {
             NCNetworking.shared.readFolder(serverUrl: serverUrl, account: appDelegate.account) { (account, metadataFolder, metadatas, metadatasUpdate, metadatasLocalUpdate, errorCode, errorDescription) in
                 if errorCode == 0 {
                     for metadata in metadatas ?? [] {
-                        if !metadata.directory {
+                        if !metadata.directory && CCUtility.getFavoriteOffline() {                            
                             let localFile = NCManageDatabase.sharedInstance.getTableLocalFile(predicate: NSPredicate(format: "ocId == %@", metadata.ocId))
                             if localFile == nil || localFile?.etag != metadata.etag {
                                 NCOperationQueue.shared.download(metadata: metadata, selector: selectorDownloadFile, setFavorite: false)