update chat if necessary after new message posted or deleted
solve conflict