-If a new message is the same as the current last message, it is not added to the history