Marino Faggiana 6 years ago
parent
commit
61fb78e52a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      iOSClient/Notification/CCNotification.swift

+ 2 - 2
iOSClient/Notification/CCNotification.swift

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