best friend worried that boyfriend cheating on her with me

Apparently he told her a year ago that he thought I was pretty but nothing between us happened. (I found out last night)He's in college now and he's back to visit. He came to my band concert and I gave him a hug after. She seemed to be fine at the time. We started snapping and I told her. I want to be as honest I can with her but idk anymore because she freaked out and told me to stop talking to him and delete his number snap and unfollow him on Instagram. I couldn't do that because he's a friend. I'm also dating someone currently. (Keep that in mind) He also told me that they are on a break and currently fading away. So tonight I snapped him and he said "if I come over rn would you give me a hug?" And that's kinda weird. I don't know if  he's trying to flirt with me. He's known for cheating on his girlfriend as well. What should I do? Stop talking one? Stop talking to both? She did get mad at me but she's a really great friend.