In not so many words, I was recently told that I needed to "snap out of" my depression.
Maybe if these two people were aware of what depression was, they'd know that "snapping out of it" isn't how it works.
Telling oneself, "Oh hey, I'm not going to be depressed!" doesn't work.
Do some research, seriously.
And people who are happy aren't allowed to tell people who aren't that they need to be happy.
Also, saying, "There are people who are worse off" isn't helpful either. I am fully aware that there are other people in the world who are worse off. However, those people are not me, and really, I should be worrying about my own well-being and that of my friends before I start to worry about people I don't know or never will know.
Get over yourself, [insert two people here].