before add rich message.