Relationship

So me and my boyfriend had a big fight... he found a message on my phone from an old boyfriend who I had agreed to be friends with. I told him I would help him a little just to get home till he got his money.... he is getting out of prison and I saw it as an opportunity to gain the money I had lost helping him. Am I wrong for doing that behind his back? Even though I have no feelings for the guy anymore??