We also don't know how she ran into that text message. Was that a conversation they were just having and she went to use his phone and the friend just replied so when she unlocked the phone, it went straight to the conversation?
Either way, I put more blame on the OP than the now ex-GF.
Sorry- equal blame here, as no one was trusted or respected.