marinofaggiana 3 년 전
부모
커밋
915ca1518b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
                     }
                 }