Desktop
To stop receiving chat messages from a player who is behaving abusively, you can click on the player in question and choose the “Mute player” option, as shown in the image below:
Mobile
Click on the player in question and choose the “Mute” option, as shown in the image below: