Should you tell your partner when someone is hitting on you?

My boyfriend said he had something important to tell me this morning and when I called he said that someone from his past was calling him love and said he was on her mind. He told me that he was over her because she would randomly leave him on read months/years ago when they did talk and that he wasn’t sure how to reply. He asked me how to reply and I told him to just not reply but I’m not really sure if he should’ve told me in the first place.
Guys hit on me all the time and I don’t tell him about it because it’s nothing significant to me. I just reject them and move on.
Should you tell your partner when someone is hitting on you?
Post Opinion