When a user changes his username in server code I update the DB with the new name and use sender.setName to update the live user object.
However the client does not get this update, smartfox.mySelf.name still returns the old username.
I tried to use
getApi().getUserById(sender.getId()).setName(...) and got the same result.
I'm a bit surprised, I'm pretty sure I tested this before and at some point it worked, something must have changed.
Thank you