Depends on the situation...
An old friend of mine would literally come round and whine at me about all her problems. Nothing else. No interest in anything about my life, or offering any support. Neither wanted solutions to her problems. I absolutely get this is part of friendship, but there was literally nothing else to this relationship, she would just turn up unannounced and complain about anything and everything, for a couple of hours, by the time she left, I'd be exhausted and in a low mood. I kept seeing her thinking I was being a good friend.
My DM noticed that I was low, and snappy, and grumpy after every visit.
DM was here one day and friend turned up. Same thing of whining about her work, lack of relationship, her mother, her other friends, her weight, you name it.
DM said "Have you ever tried looking for the positives in your life? It must be so tiring to be so consumed with the negatives?"
Which, wasn't particularly diplomatic, but actually a true statement.
Friend walked out. Later text me to say she wanted notification if my "bully" of a mother was ever at my home again so she could avoid her "nasty comments."
My mum isn't a bully. I haven't seen the friend since, and actually, I hadn't realised how much she affected my mental health.