banned for leaving for teammate

Hi, I was trying to play with a friend, I had previosuly left a game and then tried to look for a game with him, it said he was in the fireteam with me but when i got into a game it said he wasnt in the lobby, so i had to leave again to invite him, but then i was banned, will i be unbanned? and is the showing a friend in the lobby that isnt thing a bug or just me?
thanks