Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.2.0
-
Fix Version/s: 2.2.1
-
Component/s: Administrator
-
Labels:None
Description
When updating the current user, the update client user may not be updated. This is because updating the user when not changing the username runs in a background thread, so when accessing the current user, it may not have been updated yet. Updating the currently logged in user should not run in a background thread.
Changed the updateAndSwitchUser method that runs in the main thread to be an updateCurrentUser method. Fixed bug in UpdateClient that was using the requestUser instead of the passed in user. This was only a problem before because the requestUser could have been out of date if the updateUser thread hadn't completed yet.