Make username change not break things

Currently, when you change your username, any rooms that you're in get broken for everyone if you've got messages - #867.  This is due to sorting the messages from the user into the userlist.  This change fixes that.