How people treat you is never a personal attack on you, it's a reflection of what's happening inside of them.
When someone treats you badly, understand that this is their perception. You can never change another person.
You can however understand that you deserve better, wish them well, and walk away.
This does not mean be a door mat. Speak your truth without anger, but then know that the only change that will matter is their changed behavior, not the apology they may offer you.
(Reminder: You don’t need to match others' disrespect or negative energy