Various improvements to chat component.