This happens only occasionally, and there are a few things to get the chat back to normal.
Try refreshing the page by holding both Ctrl + Shift + R on Windows (Option, Command, P, and R on Mac).
Re-login and open the contract again.
This should work and you will be able to type messages again.