marinofaggiana 3 жил өмнө
parent
commit
34ef2f59a8

+ 1 - 1
iOSClient/Activity/NCActivity.swift

@@ -125,7 +125,7 @@ class activityTableViewCell: UITableViewCell, NCCellProtocol {
             return nil
         }
     }
-    var avatarImageView: UIImageView? {
+    var fileAvatarImageView: UIImageView? {
         get{
             return avatar
         }

+ 1 - 1
iOSClient/Main/Collection Common/NCGridCell.swift

@@ -43,7 +43,7 @@ class NCGridCell: UICollectionViewCell, UIGestureRecognizerDelegate, NCCellProto
             return imageItem
         }
     }
-    var avatarImageView: UIImageView? {
+    var fileAvatarImageView: UIImageView? {
         get{
             return nil
         }

+ 1 - 1
iOSClient/Main/Collection Common/NCListCell.swift

@@ -53,7 +53,7 @@ class NCListCell: UICollectionViewCell, UIGestureRecognizerDelegate, NCCellProto
             return imageItem
         }
     }
-    var avatarImageView: UIImageView? {
+    var fileAvatarImageView: UIImageView? {
         get{
             return imageShared
         }

+ 1 - 1
iOSClient/Main/NCCellProtocol.swift

@@ -25,6 +25,6 @@ import UIKit
 
 protocol NCCellProtocol {
     var filePreviewImageView: UIImageView? { get }
-    var avatarImageView: UIImageView? { get }
+    var fileAvatarImageView: UIImageView? { get }
 }
 

+ 1 - 1
iOSClient/Media/Cell/NCGridMediaCell.swift

@@ -39,7 +39,7 @@ class NCGridMediaCell: UICollectionViewCell, NCCellProtocol {
             return imageItem
         }
     }
-    var avatarImageView: UIImageView? {
+    var fileAvatarImageView: UIImageView? {
         get{
             return nil
         }

+ 4 - 4
iOSClient/Networking/NCOperationQueue.swift

@@ -168,14 +168,14 @@ import NCCommunication
         #if !EXTENSION
         let appDelegate = UIApplication.shared.delegate as! AppDelegate
         if let image = appDelegate.avatars[user] {
-            cell.avatarImageView?.image = image
+            cell.fileAvatarImageView?.image = image
             return
         }
         #endif
                 
-        cell.avatarImageView?.image = placeholder
+        cell.fileAvatarImageView?.image = placeholder
         if let image = UIImage(contentsOfFile: fileNameLocalPath) {
-            cell.avatarImageView?.image = NCUtility.shared.createAvatar(image: image, size: 30)
+            cell.fileAvatarImageView?.image = NCUtility.shared.createAvatar(image: image, size: 30)
         }
     
         downloadAvatarQueue.addOperation(NCOperationDownloadAvatar.init(user: user, fileNameLocalPath: fileNameLocalPath, cell: cell))
@@ -453,7 +453,7 @@ class NCOperationDownloadAvatar: ConcurrentOperation {
                 
                 if errorCode == 0 && data != nil {
                    
-                    if let avatarImageView = self.cell?.avatarImageView  {
+                    if let avatarImageView = self.cell?.fileAvatarImageView  {
                         
                         if var image = UIImage.init(data: data!) {
                             image = NCUtility.shared.createAvatar(image: image, size: 30)

+ 1 - 1
iOSClient/Notification/NCNotification.swift

@@ -339,7 +339,7 @@ class NCNotificationCell: UITableViewCell, NCCellProtocol {
             return nil
         }
     }
-    var avatarImageView: UIImageView? {
+    var fileAvatarImageView: UIImageView? {
         get{
             return avatar
         }

+ 2 - 2
iOSClient/Share/NCShare.swift

@@ -481,7 +481,7 @@ class NCShareUserCell: UITableViewCell, NCCellProtocol {
             return nil
         }
     }
-    var avatarImageView: UIImageView? {
+    var fileAvatarImageView: UIImageView? {
         get{
             return imageItem
         }
@@ -527,7 +527,7 @@ class NCShareUserDropDownCell: DropDownCell, NCCellProtocol {
             return nil
         }
     }
-    var avatarImageView: UIImageView? {
+    var fileAvatarImageView: UIImageView? {
         get{
             return imageItem
         }

+ 1 - 1
iOSClient/Share/NCShareComments.swift

@@ -220,7 +220,7 @@ class NCShareCommentsCell: UITableViewCell, NCCellProtocol {
             return nil
         }
     }
-    var avatarImageView: UIImageView? {
+    var fileAvatarImageView: UIImageView? {
         get{
             return imageItem
         }

+ 1 - 1
iOSClient/Transfers/NCTransferCell.swift

@@ -45,7 +45,7 @@ class NCTransferCell: UICollectionViewCell, UIGestureRecognizerDelegate, NCCellP
             return imageItem
         }
     }
-    var avatarImageView: UIImageView? {
+    var fileAvatarImageView: UIImageView? {
         get{
             return nil
         }