Chat window improvements

Trying to close #5191, I noticed a few other things which I've resolved here.