add Enter event to the message text filed and make the checking message automatically when the chat tab is open.