more readable
Changed how the chat input is disabled