Am I wrong for this ??

So I’m dating my friends ex she mad but he makes me really happy . Anyways this resin told me I’m selfish that I’m choosing me being happy over her not being mad at me. I always but other being happiness before even if it tears me down. So I just thought this one time I Could be happy. Am I wrong for this ?