Browse Source

fix image _shared_with_you_by_

marinofaggiana 5 years ago
parent
commit
19ed48f8a2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      iOSClient/Share/NCShare.swift

+ 2 - 2
iOSClient/Share/NCShare.swift

@@ -359,13 +359,13 @@ extension NCShare: UITableViewDataSource {
                     sharedWithYouByView.isHidden = false
                     sharedWithYouByLabel.text = NSLocalizedString("_shared_with_you_by_", comment: "") + " " + tableShare.displayNameFileOwner
                     
-                    let fileNameLocalPath = CCUtility.getDirectoryUserData() + "/" + CCUtility.getStringUser(appDelegate.activeUser, activeUrl: appDelegate.activeUrl) + "-" + tableShare.displayNameFileOwner + ".png"
+                    let fileNameLocalPath = CCUtility.getDirectoryUserData() + "/" + CCUtility.getStringUser(appDelegate.activeUser, activeUrl: appDelegate.activeUrl) + "-" + tableShare.uidFileOwner + ".png"
                     if FileManager.default.fileExists(atPath: fileNameLocalPath) {
                         if let image = UIImage(contentsOfFile: fileNameLocalPath) {
                             sharedWithYouByImage.image = image
                         }
                     } else {
-                        let url = appDelegate.activeUrl + k_avatar + tableShare.displayNameFileOwner + "/128"
+                        let url = appDelegate.activeUrl + k_avatar + tableShare.uidFileOwner + "/128"
                         let encodedString = url.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
                         OCNetworking.sharedManager()?.downloadContents(ofUrl: encodedString, completion: { (data, message, errorCode) in
                             if errorCode == 0 && UIImage(data: data!) != nil {