Should I be more mad at him or her?

My friend and I are close friends with this guy. Him and I are just talking but have potential to be dating soon.
I’m bothered by something that happened recently between us. He went through my friends phone and went through messages between her and I. He saw pictures we sent each other and messages I sent. Pictures I wouldn’t want him to see. She allowed him to go through them.
I found this out because he told me.

Should I be more mad at him or her?
Post Opinion