marinofaggiana 4 سال پیش
والد
کامیت
a3d578939a
2فایلهای تغییر یافته به همراه3 افزوده شده و 7 حذف شده
  1. 1 1
      Cartfile.resolved
  2. 2 6
      iOSClient/Recent/NCRecent.swift

+ 1 - 1
Cartfile.resolved

@@ -17,7 +17,7 @@ github "malcommac/SwiftRichString" "3.7.2"
 github "marinofaggiana/KTVHTTPCache" "2.0.2"
 github "marinofaggiana/OpenSSL" "6c7cf839d9c74e5a0b92bbf343e1a33b6f56a277"
 github "marinofaggiana/TOPasscodeViewController" "0.0.7"
-github "nextcloud/ios-communication-library" "15e2346ffeabca4c8d14d48de561a9299b42728f"
+github "nextcloud/ios-communication-library" "3d434708ca2fca17576d77a41660025c8e89d2b4"
 github "rechsteiner/Parchment" "v2.4.0"
 github "scenee/FloatingPanel" "v1.7.6"
 github "tilltue/TLPhotoPicker" "2.0.12"

+ 2 - 6
iOSClient/Recent/NCRecent.swift

@@ -63,10 +63,6 @@ class NCRecent: NCCollectionViewCommon  {
     override func reloadDataSourceNetwork(forced: Bool = false) {
         super.reloadDataSourceNetwork(forced: forced)
         
-        guard let href = NCCommunicationCommon.shared.encodeString("/files/" + appDelegate.userID) else {
-            return
-        }
-        
         let requestBodyRecent =
         """
         <?xml version=\"1.0\"?>
@@ -121,7 +117,7 @@ class NCRecent: NCCollectionViewCommon  {
         </d:searchrequest>
         """
         
-        let requestBody = String(format: requestBodyRecent, href)
+        let requestBody = String(format: requestBodyRecent, "/files/"+appDelegate.userID)
         
         isReloadDataSourceNetworkInProgress = true
         collectionView?.reloadData()
@@ -131,7 +127,7 @@ class NCRecent: NCCollectionViewCommon  {
             self.refreshControl.endRefreshing()
             self.isReloadDataSourceNetworkInProgress = false
             self.reloadDataSource()
-        }        
+        }
     }
 }