Bumped into this girl that I haven't seen in a long time online. Previously she seemed very receptive to me the past couple of months, but she was absent for quite a while.

She mentioned that she was away because she took time to mourn a death in the family. That stuff is legitimately depressing so I offered my condolences and sympathies.

But then she mentioned that she got her heartbroken by this guy who had a baby with her gf and blah blah blah (I did not bother to read the rest of it).

Normally, I'd talk about it and be comforting, but I also realise that that's the fast track into the friend zone. I also did not want to be an asshole and say 'what makes you think you can share this with me?'

So I took the neutral route and remained silent. After a while she asked if she was being too personal. I brushed off and said that I just woke up. She apologised again afterwards.

I understand that the second a girl mentions a guy that isn't you (in terms of attraction), it's game over, but this is more an exercise in maintaining frame and making sure I don't end up being a doormat again. Did I handle this right? Constructive criticism is welcome. Thanks