update chatroom and send message