prevent empty chat-messages from being sent

Currently one can send tons of empty messages by pressing and holding the `enter`-key, this can happen on accident which should be avoided.