Browse Source

fix searching with upload

Signed-off-by: marinofaggiana <marino.faggiana@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
bc7c298115
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

+ 1 - 1
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -529,7 +529,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
               account == appDelegate.account
         else { return }
 
-        guard let metadata = NCManageDatabase.shared.getMetadataFromOcId(ocId) else { return }
+        guard !appDelegate.isSearchingMode, let metadata = NCManageDatabase.shared.getMetadataFromOcId(ocId) else { return }
         dataSource.addMetadata(metadata)
         self.collectionView?.reloadData()
     }