|
@@ -93,7 +93,7 @@ class NCShare: UIViewController, UIGestureRecognizerDelegate, NCShareLinkCellDel
|
|
|
if FileManager.default.fileExists(atPath: fileNameLocalPath) {
|
|
|
if let image = UIImage(contentsOfFile: fileNameLocalPath) { sharedWithYouByImage.image = image }
|
|
|
} else {
|
|
|
- NCCommunication.shared.downloadAvatar(userID: metadata!.ownerId, fileNameLocalPath: fileNameLocalPath, size: Int(k_avatar_size)) { (account, data, errorCode, errorMessage) in
|
|
|
+ NCCommunication.shared.downloadAvatar(userID: metadata!.ownerId, fileNameLocalPath: fileNameLocalPath, size: NCBrandGlobal.shared.avatarSize) { (account, data, errorCode, errorMessage) in
|
|
|
if errorCode == 0 && account == self.appDelegate.account && UIImage(data: data!) != nil {
|
|
|
if let image = UIImage(contentsOfFile: fileNameLocalPath) {
|
|
|
self.sharedWithYouByImage.image = image
|
|
@@ -316,7 +316,7 @@ class NCShare: UIViewController, UIGestureRecognizerDelegate, NCShareLinkCellDel
|
|
|
if let image = UIImage(contentsOfFile: fileNameLocalPath) { cell.imageItem.image = image }
|
|
|
} else {
|
|
|
DispatchQueue.global().async {
|
|
|
- NCCommunication.shared.downloadAvatar(userID: sharee.shareWith, fileNameLocalPath: fileNameLocalPath, size: Int(k_avatar_size)) { (account, data, errorCode, errorMessage) in
|
|
|
+ NCCommunication.shared.downloadAvatar(userID: sharee.shareWith, fileNameLocalPath: fileNameLocalPath, size: NCBrandGlobal.shared.avatarSize) { (account, data, errorCode, errorMessage) in
|
|
|
if errorCode == 0 && account == self.appDelegate.account && UIImage(data: data!) != nil {
|
|
|
if let image = UIImage(contentsOfFile: fileNameLocalPath) {
|
|
|
DispatchQueue.main.async {
|
|
@@ -408,7 +408,7 @@ extension NCShare: UITableViewDataSource {
|
|
|
if let image = UIImage(contentsOfFile: fileNameLocalPath) { cell.imageItem.image = image }
|
|
|
} else {
|
|
|
DispatchQueue.global().async {
|
|
|
- NCCommunication.shared.downloadAvatar(userID: tableShare.shareWith, fileNameLocalPath: fileNameLocalPath, size: Int(k_avatar_size)) { (account, data, errorCode, errorMessage) in
|
|
|
+ NCCommunication.shared.downloadAvatar(userID: tableShare.shareWith, fileNameLocalPath: fileNameLocalPath, size: NCBrandGlobal.shared.avatarSize) { (account, data, errorCode, errorMessage) in
|
|
|
if errorCode == 0 && account == self.appDelegate.account && UIImage(data: data!) != nil {
|
|
|
if let image = UIImage(contentsOfFile: fileNameLocalPath) {
|
|
|
cell.imageItem.image = image
|