Being offended and caring what others think about you go hand in hand. If you are offended by someone, a part of you values their opinion. Similarly, if you don’t care what others think, you won’t be easily offended.
In practice, this is difficult advice to follow. People tend to care what others think of them and therefore value their opinion. To counter this tendency, ask yourself, “Would you seek their advice in the future?”. If the answer is ‘yes’, then you should talk to them because you actually value their opinion. If the answer is ‘no’, their opinion doesn’t matter and recognizing that can help you move along.