There are such individuals almost everywhere - at work, at home, with friends. After communicating with such individuals, one feels a breakdown and melancholy in the soul. Try to limit your communication with such people by using ignorance or mirror communication.
Some individuals can be called true sources of negativity. Not only are they themselves interested in various kinds of negative information, but they also spread it around. Try to protect yourself from such individuals, for this you need to adhere to certain principles.
Don't accept the negative
Ignore the information that this individual is trying to present to you, be detached, answer inappropriately. After such a conversation, the person will become uninteresting with you, and he will stop the conversation himself.
Use psychological techniques
Techniques of this kind can be easily found on the Internet and are widely available. Practice at home on your own and then try it out when dealing with a negative person. If it doesn't work, then try to find another one, experiment.
Complain back yourself
As they say, hit the enemy with his own weapon. As soon as the person tries to give you another negative information, tell him something similar in response. Try to present everything in such a way that you are much worse off than him. After a while, you will be uninteresting as an interlocutor.
Such people are looking for "donors" to feed on them with positive energy. Do not let them use you in this capacity, there is not only sadness in life, but also joy.