Yesterday I've put my iPhone X in an charginglocker at school. After 2 hours I came back to the locker and I saw the charging cable was not working properly. It was like the iPhone didn't charge, it constantly went from charging to not charging (like you plug in your cable, and then unplugged it constantly). So it drained my battery a lot. I was wondering if this is damaging for my iPhone battery because today i noticed after minimal use (3 hour usage and 8 hours stand-by) the battery level dropped tot 50%. Anyone knows anything about this?