Was I in the right for getting angry at a friend for telling other people I vape?

pikok
The third semester of the university was a really stressful period for me. It's considered to be the most difficult one in all of the years of my course and it was the first one I did up close, because the first two were done by zoom and webex.

I had difficulty making friends and half of them turned up to be really toxic to me and the rest of the group. We decided to ditch them, but the damage was already done. I felt really insecure about approaching people and the stress of the exam period that was announced sooner than we expected didn't help out as well. At some point, I decided to start expirementing with cigarrets, but ended up switching to vaping.

I only did it when I was home alone, since I feared my remaining friends would critisize me with comments like "you know smoking is bad for you, right?". One night I was studying with someone I felt closer to than most people I knew until late at night and thought sneaking a few puffs wouldn't be a problem. He was surprised at first, but then stopped paying attention to it.

A few months go by and I decide to drop the habit. I thought there was no harm done, since as far as I knew no-one else knew about it. Then today, as me and a few other people were walking home together, we started discussing who how many people from my uni were smoking. That's when that friend looked at me and said in front of everyone "don't you vape as well?". I felt super embarrased and the others, who didn't know about it looked really surprised. I then told the guy I didn't like what he did. He apologized and I thought that was the end of it, but he later texts me and starts explaining to me why he didn't think it was a big deal.

It's nothing to keep a grudge about, but I still think it wasn't right to straight up announce it to everyone without asking me first.
Was I in the right for getting angry at a friend for telling other people I vape?
2 Opinion