Fix issue with chat message before room is defined