I'm sure she didn't mean it like that. Her mother's situation may not match with yours, but she's trying to help. She is saying you can overcome any obstacle. Life is full of them we must overcome...try to be nice about it. She was only trying to help.
She was making a simple analogy...if she can overcome depression, than you can too. I know your depression is highly uncontrollable in a way that we may not understand, but a little encouragement never hurts.