Fixed bug for the same message appearing in the chat view