(English isn't my first language) 

My friend texted me today about his struggles with his family.
He often tries to talk to them about his anxiety/depression issues but he feels like they never really WANT to understand him. He told me how he truly wants to change and live better, but he feels like nobody cares and nobody wants to help him overcome the struggles he goes through every day.

I told him how I care a lot about him and tried to give him some advice, but it's really hard to find the right words. 
I told him how I went through a similar situation myself and have found peace by just stop caring about what my family had to say about me. I know it's hard, but I told him that if they don't try to understand his struggles then he should stop listening to them. There are other people out there who care and understand. 

But he just.. didn't say anything back?
He left me on read and kept talking with another friend, making jokes out of the situation. 
It isn't the first time it happens and I'm just trying to understand if I'm giving him bad advice or if I'm being annoying by talking about how I went through the same sh*t.
Tbh, I'm always the one who comforts him when he's talking about his problems, but sometimes it feels like he doesn't care. I'm always afraid I'm just being annoying. 
I don't know what to do, I feel useless.

Am I just overthinking?