How do you get your jealous boyfriend to trust you?

“I was out with some friends and one of them was joking around and being flirty.
My boyfriend noticed and got mad because he thought I started it and was flirting back. He’s still mad at me even though I wasn’t doing anything.
What should I do?”
What do you think?