|
@@ -74,7 +74,7 @@ class NCService: NSObject {
|
|
|
self.synchronizeOffline(account: tableAccount.account)
|
|
|
|
|
|
// Get Avatar
|
|
|
- let avatarUrl = "\(self.appDelegate.urlBase)/index.php/avatar/\(self.appDelegate.user!)/\(NCBrandGlobal.shared.avatarSize)".addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed)!
|
|
|
+ let avatarUrl = "\(self.appDelegate.urlBase)/index.php/avatar/\(self.appDelegate.user)/\(NCBrandGlobal.shared.avatarSize)".addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed)!
|
|
|
let fileNamePath = CCUtility.getDirectoryUserData() + "/" + stringUser + "-" + self.appDelegate.user + ".png"
|
|
|
NCCommunication.shared.downloadContent(serverUrl: avatarUrl) { (account, data, errorCode, errorMessage) in
|
|
|
|