Best friend hates boyfriend

Savannah

So I have this friend (let’s name her B) and I have my boyfriend (let’s name him H) so I have been friends with H for 4 years and been friends with B for 3 years but me and H started getting closer this year and it lead to him becoming my boyfriend, H used to flirt with me and annoy me and it used to really annoy B so when I told B that H was my boyfriend she started to distance herself from me but I didn’t give up... me and H still hung around with B because I didn’t want to lose her but it got to the point where she’s say he’d done something that I knew he hadn’t done and she was isolating me even more so i have distanced myself away from B and we haven’t talk in about a month or 2 (which is really hard because we were best friends)... do you think this was the right choice? I just want her to be happy

SORRY FOR IT BEING SOOOO LONG!!