Explorar o código

improved code

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana %!s(int64=2) %!d(string=hai) anos
pai
achega
f0ea34eb84
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      iOSClient/Offline/NCOffline.swift

+ 0 - 2
iOSClient/Offline/NCOffline.swift

@@ -57,12 +57,10 @@ class NCOffline: NCCollectionViewCommon {
                         ocIds.append(directory.ocId)
                     }
                 }
-
                 let files = NCManageDatabase.shared.getTableLocalFiles(predicate: NSPredicate(format: "account == %@ AND offline == true", self.appDelegate.account), sorted: "fileName", ascending: true)
                 for file in files {
                     ocIds.append(file.ocId)
                 }
-
                 metadatas = NCManageDatabase.shared.getMetadatas(predicate: NSPredicate(format: "account == %@ AND ocId IN %@", self.appDelegate.account, ocIds))
             } else {
                 metadatas = NCManageDatabase.shared.getMetadatas(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@", self.appDelegate.account, self.serverUrl))