prevent write chat message where outdated chat room