You lose one good person in your life, but you find another ones and even better.
Your once-a-good friend thinks you are a bad person and places yourself as his/her enemy now, but you find MORE than one person who trust and appreciate you in many other ways and always think you are good.
If we notice the pattern of all things revolved in our life, Allah would never let us suffer from sorrow and hardship for long standing. He even multiples the merits you may obtain so you don't have to worry over ONE unimportant matter and feel dejected :)
Be grateful everyday and He'll open the gate of unstoppable merits to your life.