Yes, but messages saying hi are different to letting someone feel you up. I can understand getting cranky over completely innocent messages just saying hi (one of my ex-bfs was paranoid about other guys) though.
But yes, I think you were in the wrong.