소스 검색

fix searching with upload

Signed-off-by: marinofaggiana <marino.faggiana@nextcloud.com>
marinofaggiana 2 년 전
부모
커밋
bc7c298115
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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()
     }