Limit the max number of chat messages in one window to 30 messages to avoid overloading