A true friend, when you admit to a struggle or fault, will not use it as leverage. As in, "Well, if you have that problem, then you have to... (pick something you do not want to do) because you are not worthy of (the best, what you actually wish for, etc.)."
Now don't misunderstand me, if your friend tells you that you need to address your problem and get help if needed, they are indeed being a friend. But the person who tells you to just throw away your own feelings and desires, because of ANY issue you are facing, is instructing you in the art of slow suicide. Let me explain.
Physical suicide is a tragedy, devastating to not only the person who commits it but to everyone who cares about or depends on them. It is not, however, an untraceable tragedy. No happy, healthy person decides to destroy himself or herself one day, and does it the next. It is a slow process--the process of not caring.
A person who feels discouraged about life may decide they don't care about this or that choice that they have in front of them and just choose randomly or go with whatever is easiest. Then they are stuck with a choice they did not put much thought or heart into and therefore do not really like very much. If not caught and reversed, this can escalate into a spiral downwards into further passivity. Count on it, a person who is discouraged will be tempted to settle for choices they would never consider in any other frame of mind.
~
If you are the friend of a discouraged person, try to gently remind them to be true to their heart. If they have already made choices otherwise, in a weak moment or under unreasonable pressure, be a true friend by encouraging them NOT to return to decisions they regret--even if there is a cost involved. Remember, climbing out of passivity is a battle. It must be fought, internally, every step--so every step backwards means an even longer time getting to freedom. You wouldn't want that for yourself, so don't wish it either on anyone you would call "friend."
Finally, if you are the friend of someone who is discouraged, or has been in the past, you deserve to know that you are a hero! People like you are sorely needed in these times. A true friend is worth more than any possession, for no possession can warm the heart when one is lonely, sad, or discouraged. And because you care about your friend enough to tell them the truth, you may well see them able to grow, flourish, and thank you for your care. From one friend to another, that's the best reward there is. :)