Fixes the issue with joinning the chat room before the user enters nickname and click the "OK" button.