The GLOBALUSERSTATE and USERSTATE are not related to any message list modifications. Instead, they can be handled with one line in the switch statement in chat store. The USERSTATE method was renamed to addMessage for better readability.