marinofaggiana 4 years ago
parent
commit
1aa41b9904

+ 2 - 2
iOSClient/Main/Colleaction Common/NCCollectionViewCommon.swift

@@ -1417,16 +1417,16 @@ extension NCCollectionViewCommon: UICollectionViewDataSource {
             if metadata.ownerId.count > 0 && metadata.ownerId != appDelegate.userID {
                 let fileNameUser = CCUtility.getDirectoryUserData() + "/" + CCUtility.getStringUser(appDelegate.user, urlBase: appDelegate.urlBase) + "-" + metadata.ownerId + ".png"
                 if FileManager.default.fileExists(atPath: fileNameUser) {
-                    cell.imageShared.disableAvatar = false
                     cell.imageShared.image = UIImage(contentsOfFile: fileNameUser)
                 } else {
                     NCCommunication.shared.downloadAvatar(userID: metadata.ownerId, fileNameLocalPath: fileNameUser, size: NCBrandGlobal.shared.avatarSize) { (account, data, errorCode, errorMessage) in
                         if errorCode == 0 && account == self.appDelegate.account {
-                            cell.imageShared.disableAvatar = false
                             cell.imageShared.image = UIImage(contentsOfFile: fileNameUser)
                         }
                     }
                 }
+            } else {
+                cell.imageShared.borderColor = .clear
             }
             
             // Transfer

+ 1 - 1
iOSClient/Main/Colleaction Common/NCListCell.xib

@@ -87,7 +87,7 @@
                                 <real key="value" value="1"/>
                             </userDefinedRuntimeAttribute>
                             <userDefinedRuntimeAttribute type="color" keyPath="borderColor">
-                                <color key="value" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
+                                <color key="value" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
                             </userDefinedRuntimeAttribute>
                         </userDefinedRuntimeAttributes>
                     </imageView>

+ 2 - 2
iOSClient/Select/NCSelect.swift

@@ -568,16 +568,16 @@ extension NCSelect: UICollectionViewDataSource {
             if metadata.ownerId.count > 0 && metadata.ownerId != appDelegate.userID {
                 let fileNameUser = CCUtility.getDirectoryUserData() + "/" + CCUtility.getStringUser(appDelegate.user, urlBase: appDelegate.urlBase) + "-" + metadata.ownerId + ".png"
                 if FileManager.default.fileExists(atPath: fileNameUser) {
-                    cell.imageShared.disableAvatar = false
                     cell.imageShared.image = UIImage(contentsOfFile: fileNameUser)
                 } else {
                     NCCommunication.shared.downloadAvatar(userID: metadata.ownerId, fileNameLocalPath: fileNameUser, size: NCBrandGlobal.shared.avatarSize) { (account, data, errorCode, errorMessage) in
                         if errorCode == 0 && account == self.appDelegate.account {
-                            cell.imageShared.disableAvatar = false
                             cell.imageShared.image = UIImage(contentsOfFile: fileNameUser)
                         }
                     }
                 }
+            } else {
+                cell.imageShared.borderColor = .clear
             }
             
             cell.imageSelect.isHidden = true