marinofaggiana 6 vuotta sitten
vanhempi
commit
6cd42ae3bf
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  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
-            
-            //
+            if errorCode == 0 && account == self.appDelegate.activeAccount {
+                _ = NCManageDatabase.sharedInstance.setAccountUserProfile(userProfile!)
+            }
         })
     }
 }