Refresh in-memory data when a new message is added.