Is the sentence correct ?
I had just got to school when my mobile phone rang.
I would like to know if this sentence is gramatically correct and native. I don't know why it is not " had just gotten to school " or " I just got to school " .
Thank you so much