<human>: They dated for six years and broke up almost 2 years ago. She is still very sensitive about the relationship.

While they were dating, we were all in a very close-knit friend group.
I was always on friendly terms with her ex while they were dating and my boyfriend is currently still friends with him. 

These circumstances make it difficult to avoid the ex, and whenever my friend hears that the ex and I have communicated in any way, she has a meltdown. For example, someone spotted us running into each other and chatting at our university cafe, told her, and she freaked out. She hears her ex and I were at the same party? Freaks out. 

Is she justified in being so uncomfortable with her friends talking to her ex? How do I calm her fears and stay on friendly terms with both of them?

Can you condense the text into a few key points?
<bot>: Friend gets upset when she hears I chatted with her ex at school/a party/etc. How do I remain friends with them both?