marinofaggiana 3 lat temu
rodzic
commit
915ca1518b
1 zmienionych plików z 1 dodań i 1 usunięć
  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
                     }
                 }