I'm a millennial and a lot (too many) of my friends were those who were of the opinion that, immediately following the 2016 election, the best way to demonstrate how much they value love, tolerance, inclusion, and empathy, was to abruptly and often very messily end relationships with close friends and family members who either voted for Trump or didn't sufficiently hate him. I wrote those friends off as we weren't super close to begin with and I'm not going to be friends with someone if it's 100% on their terms and their terms are so superficial
I have a really close friend whose friendship I don't want to lose who kind of fell into that group but wasn't extreme about it. I don't what the deal is, but after the results of the 2020 election she began harboring unfair vitriol against anyone who didn't vote for Biden, including me, despite her knowing that I rarely ever support either major candidate and will always vote for some third party candidate in the hopes we'll see a splash of yellow on the electoral map.
I used to be able to overlook her passive aggression but when she failed to elicit a response out of me she began ramping it up little by little until it's now rare that she won't make some "offhanded" attack against me while hanging out, things like:
"I can't believe one of my best friends was racist all along"
"I know you don't respect my choices as a woman, but I think we should go to [restaurant] for dinner, OMG JK JK!"
These 'attacks' aren't random, there's always something that sets them off. This could be a reference to Trump in a TV show we're watching, seeing a reference to current events that are unfavorable to Biden while she's browsing the internet or social media on her phone, etc. When she's not in this weirdly vindictive mood she's very sweet, funny, fun to be around and I love spending time with her.
I'd love to communicate to her that I still want to be her friend, but that I won't tolerate her passive aggressive attacks. I've tried several ways to do so, but she often sees it as being antagonistic or unnecessarily sensitive:
Asked her politely to stop making statements like that because they're unfair, she doesn't know people's reasons for voting the way they did (even pointed out the irony that she knows my reason and still treats me poorly regardless), and that voting one way or another isn't indicative of a person's supposed "righteousness". She dismissed me and suggested that racists/sexists/all varieties of -phobes "feel obligated to defend each other"
A bit hostilely pointed out my opinion that the fact that she doesn't seem to understand that there are more reasons to vote than expressing some form of deep-rooted hatred for one or more demographics is very revealing of her own mindset. This resulted in her getting very upset and refusing to talk to me for well over a week. I didn't apologize because I don't think I was in the wrong for saying what I did and firmly believe it. We're back on speaking terms and hanging out but sometimes we can feel the tension of that argument hanging over us
Tried to tell her straightforwardly that if she gets in one of those moods while we're hanging out then I'll leave until she's calmed down because I don't want to put up with it. She threatened to end our friendship entirely if I do that and I believe she'll act make good on that threat
What are some ways to communicate I still want to be her friend but won't tolerate passive aggressive attacks without coming off as antagonistic or as though I'm being unnecessarily sensitive, which is how he she often perceives it?