Boyfriend vs Ex 👿

Sooo my ex is still very friendly when contacting me and it boils my boyfriends guts, We rarely speak now literally. They exchanged a few words and my s/o went behind my back and sent a inappropriate picture of me and himself to my ex. I can see it affected him because we haven't really spoken since it just still pisses me off . Where to go from here?Â