|
@@ -233,7 +233,7 @@ class NCService: NSObject {
|
|
|
if errorCode == 0 && account == self.appDelegate.activeAccount {
|
|
|
|
|
|
// Update User (+ userProfile.id) & active account & account network
|
|
|
- guard let tableAccount = NCManageDatabase.sharedInstance.setAccountUserProfile(userProfile!) else {
|
|
|
+ guard let tableAccount = NCManageDatabase.sharedInstance.setAccountUserProfile(userProfile!, HCProperties: false) else {
|
|
|
self.appDelegate.messageNotification("Accopunt", description: "Internal error : account not found on DB", visible: true, delay: TimeInterval(k_dismissAfterSecond), type: TWMessageBarMessageType.error, errorCode: Int(k_CCErrorInternalError))
|
|
|
return
|
|
|
}
|
|
@@ -326,7 +326,7 @@ class NCService: NSObject {
|
|
|
CCUtility.setHCBusinessType(nil)
|
|
|
OCNetworking.sharedManager()?.getHCUserProfile(withAccount: self.appDelegate.activeAccount, serverUrl: self.appDelegate.activeUrl, completion: { (account, userProfile, message, errorCode) in
|
|
|
if errorCode == 0 && account == self.appDelegate.activeAccount {
|
|
|
- _ = NCManageDatabase.sharedInstance.setAccountUserProfile(userProfile!)
|
|
|
+ _ = NCManageDatabase.sharedInstance.setAccountUserProfile(userProfile!, HCProperties: true)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -334,7 +334,7 @@ class NCService: NSObject {
|
|
|
} else {
|
|
|
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!)
|
|
|
+ _ = NCManageDatabase.sharedInstance.setAccountUserProfile(userProfile!, HCProperties: true)
|
|
|
}
|
|
|
})
|
|
|
}
|