瀏覽代碼

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 年之前
父節點
當前提交
5866adcf47
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

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

@@ -957,6 +957,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         let serverVersionMajor = NCManageDatabase.shared.getCapabilitiesServerInt(account: appDelegate.account, elements: NCElementsJSON.shared.capabilitiesVersionMajor)
         if serverVersionMajor >= NCGlobal.shared.nextcloudVersion20 {
             NCNetworking.shared.unifiedSearchFiles(urlBase: appDelegate, literal: literalSearch, update: { metadatas in
+                guard let metadatas = metadatas, metadatas.count > 0 else { return }
                 DispatchQueue.main.async {
                     // update
                     /*