implemented a first version where messages get a previous message id when they were changed.