My crush and I got into a fight...?

So today I was walking down the hallway with him and then one of his friends came and they both completely ignored me. So I walked away and didn't really talk to him the rest of the day. Later he got all mad and was like why are you ignoring me?! and I said you were ignoring me earlier today, he got really mad and was like oh my gosh... (to be fair that isn't the first time he completely ignored me for that friend) Should I be mad at him? or does he have a right to be mad at me, although when I'm around my friends I never block him out...help?
My crush and I got into a fight...?
Post Opinion