Guy made fun of my laugh?

I went out to eat with a group of friends guys included and one guy when we were alone was imitating my laugh. I don’t know if he meant this in a rude way since he was smiling or if he was flirting? I know guys tend to mimick you when they flirt but idk it made me feel bad.