marinofaggiana 6 年之前
父節點
當前提交
6cd42ae3bf
共有 1 個文件被更改,包括 3 次插入2 次删除
  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!)
+            }
         })
     }
 }