marinofaggiana 3 năm trước cách đây
mục cha
commit
915ca1518b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      iOSClient/Share/NCShare.swift

+ 1 - 1
iOSClient/Share/NCShare.swift

@@ -110,7 +110,7 @@ class NCShare: UIViewController, UIGestureRecognizerDelegate, NCShareLinkCellDel
                         NCManageDatabase.shared.addAvatar(fileName: fileName, etag: etag)
                         self.sharedWithYouByImage.image = image
                     } else if errorCode == NCGlobal.shared.errorNotModified, let image = UIImage(contentsOfFile: fileNameLocalPath) {
-                        (UIApplication.shared.delegate as! AppDelegate).avatars[self.metadata!.ownerId] = image
+                        self.appDelegate.avatars[self.metadata!.ownerId] = image
                         self.sharedWithYouByImage.image = image
                     }
                 }