diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-10-02 10:56:40 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-10-02 10:56:40 +0300 |
commit | 0e1e2999181628064a17a0ea65fc70768a7bd2ae (patch) | |
tree | 29261b4461848bb46bd9a764b7ffe40638f9969f /iOSClient | |
parent | e10258bfe6c32b628fbf930372ffc1d9878892d6 (diff) |
coding
Diffstat (limited to 'iOSClient')
-rw-r--r-- | iOSClient/Main/NCDataSource.swift | 5 | ||||
-rw-r--r-- | iOSClient/Recent/NCRecent.swift | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/iOSClient/Main/NCDataSource.swift b/iOSClient/Main/NCDataSource.swift index 3ad668967..788864f18 100644 --- a/iOSClient/Main/NCDataSource.swift +++ b/iOSClient/Main/NCDataSource.swift @@ -58,6 +58,11 @@ class NCDataSource: NSObject { for metadata in metadatasSource { + // skipped the root file + if metadata.fileName == "." || metadata.serverUrl == ".." { + continue + } + // skipped livePhoto if metadata.ext == "mov" && metadata.livePhoto && filterLivePhoto { continue diff --git a/iOSClient/Recent/NCRecent.swift b/iOSClient/Recent/NCRecent.swift index d0546c4fb..70d1719f2 100644 --- a/iOSClient/Recent/NCRecent.swift +++ b/iOSClient/Recent/NCRecent.swift @@ -52,7 +52,7 @@ class NCRecent: NCCollectionViewCommon { (layout, _, _, groupBy, _, titleButton, itemForLine) = NCUtility.shared.getLayoutForView(key: layoutKey, serverUrl: "") metadatasSource = NCManageDatabase.sharedInstance.getMetadatas(predicate: NSPredicate(format: "account == %@", appDelegate.account), page: 1, limit: 100, sorted: "date", ascending: false) - self.dataSource = NCDataSource.init(metadatasSource: metadatasSource, directoryOnTop: false, favoriteOnTop: true, filterLivePhoto: true) + self.dataSource = NCDataSource.init(metadatasSource: metadatasSource, directoryOnTop: false, favoriteOnTop: false, filterLivePhoto: true) refreshControl.endRefreshing() collectionView.reloadData() |