<human>: My girlfriend [20F] and I met about 4 years ago as friends. We got in touch this summer and we started a wonderful relationship (relationship for about 4 months now). I learned she has some mental issues dealing with dreams/delusions and had been in a mental hospital.

While in the mental hospital, she met a guy who shared similar delusions. Both of them went out for about 3 months, ending the spring before the summer her and I met. I always knew she empathized for him (I still would talk to my ex's if I met up with them, just because I care about them, but not in a romantic way). 

About 2 months into our relationship, this guy wanted to go on a hike, which I trusted her on. Afterward, my girlfriend admitted that he was still attached to her and we both agreed they should stop talking until he has moved on.

While engaging in foreplay last night she started crying. Sometimes this occurs when a bad memory of her first sexual boyfriend pops up, who abused her. However, she ended up admitting that the guy from the hospital had called her up and they went to meditate in a park. While in a trance-like state she kissed him. 

I contained my anger and she called him on the phone in front of me, told him to not call her again, and deleted all messages he has sent her. I follow Koran-style forgiveness, where there's only 1 time of forgiveness for the same 'crime', and told her this was her last chance. I told her why this is a very hard thing to do, how I'd sooner be done with her than keep suffering again and again and again. How much I love her and know she can do better.

She went to a therapist today and I gave her my journal with three pages I wanted her to read. She was told to read them aloud at the meeting to feel the gratitude I've had for her with regards to security, respect, and compassion in our past. She says she wants to make this work and be in control of herself.

Did I do the right thing?

Can you condense the text into a few key points?
<bot>: Girlfriend cheats on me with an old mental hospital acquaintance, I give her a firm second chance. Did I do the right thing?