marinofaggiana 6 years ago
parent
commit
6cd42ae3bf
1 changed files with 3 additions and 2 deletions
  1. 3 2
      iOSClient/Networking/NCService.swift

+ 3 - 2
iOSClient/Networking/NCService.swift

@@ -325,8 +325,9 @@ class NCService: NSObject {
         }
         }
         
         
         OCNetworking.sharedManager()?.getHCUserProfile(withAccount: appDelegate.activeAccount, serverUrl: appDelegate.activeUrl, completion: { (account, userProfile, message, errorCode) in
         OCNetworking.sharedManager()?.getHCUserProfile(withAccount: appDelegate.activeAccount, serverUrl: appDelegate.activeUrl, completion: { (account, userProfile, message, errorCode) in
-            
-            //
+            if errorCode == 0 && account == self.appDelegate.activeAccount {
+                _ = NCManageDatabase.sharedInstance.setAccountUserProfile(userProfile!)
+            }
         })
         })
     }
     }
 }
 }