I told him

An ex of mine texted me last night, a little background - we were together for 16 months and he cheated on me with an ex of his for a little bit about 6 months in and I decided to work things out with him, I got really close with his sister and brother and his parents really liked me, he was the only boyfriend I had ever talked about a distant future with - so he sent me three messages last night, two on Facebook and one on instagram, all they were was him asking if I was awake... with as late as it was and just finding out that his sister is pregnant and his parents are moving back to Mexico (he’s a citizen so he wants to stay), I thought something might be wrong and I messaged him back simply asking “what’s wrong?”

That was when he told me that he cheated on his gf (the ex he cheated on me with) with her friend and he missed me. So naturally, I asked if he was drunk and what he expected from me. That was when he told me he knew he messed up by losing me and that he really missed me.

I think he was wanting to meet up because he then asked me where I was living (I told him I was moving to another state when I had made the decision and wanted closure).

So, the point is, I told my boyfriend... I told him because I didn’t want to keep it from him but now I’m thinking that maybe I shouldn’t have? Idk... he didn’t get mad or anything, he questioned the conversation and responded with “he can just keep on missing you” which I agree with. I mostly told him because I didn’t want him going through my phone (which he never does) and thinking I was hiding it or something... especially since I’m about to go back home for two weeks without him.

Did I do the right thing, or might it cause different problems?