Learn what you value
This situation taught you something useful about what you value in the people you choose to be friends with—maybe directness, humility, or loyalty. This will help you decide which people you might want to spend more or less time with going forward.