Marino Faggiana 6 ani în urmă
părinte
comite
61fb78e52a
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      iOSClient/Notification/CCNotification.swift

+ 2 - 2
iOSClient/Notification/CCNotification.swift

@@ -164,7 +164,7 @@ class CCNotification: UITableViewController, OCNetworkingDelegate {
             var image : UIImage?
             var image : UIImage?
             
             
             if let urlIcon = urlIcon {
             if let urlIcon = urlIcon {
-                let pathFileName = (appDelegate.directoryUser) + "/" + (urlIcon.lastPathComponent)
+                let pathFileName = CCUtility.getDirectoryUserData() + "/" + urlIcon.lastPathComponent
                 image = UIImage(contentsOfFile: pathFileName)
                 image = UIImage(contentsOfFile: pathFileName)
             }
             }
             
             
@@ -238,7 +238,7 @@ class CCNotification: UITableViewController, OCNetworkingDelegate {
             DispatchQueue.main.async() { () -> Void in
             DispatchQueue.main.async() { () -> Void in
                 
                 
                 do {
                 do {
-                    let pathFileName = (self.appDelegate.directoryUser) + "/" + fileName
+                    let pathFileName = CCUtility.getDirectoryUserData() + "/" + fileName
                     try data.write(to: URL(fileURLWithPath: pathFileName), options: .atomic)
                     try data.write(to: URL(fileURLWithPath: pathFileName), options: .atomic)
                     
                     
                     self.reloadDatasource()
                     self.reloadDatasource()