Friend’s boyfriend rude and condescending towards me?

I hate my friend’s boyfriend. What should I do? He insults me all the time, saying condescending things like saying I’m stupid or dumb. He also criticises the way I dress and says I’m “not as pretty as everyone makes me out to be.” Him and I had history before him and my friend started going out unfortunately. My friend never says anything when he’s rude to me but I’m only ever nice to him to keep the peace. What should I do?
Friend’s boyfriend rude and condescending towards me?
Post Opinion