Hello Haji,

If the courts are challenging your residency rights after 2018 and they consider you have lost them, the nationality application should continue its course and be resolved, and in the meantime you should recover your residence permit. If the courts dictate you had lost residency rights before you had met the 10 years minimum residency, it will certainly have a bad impact on your nationality application. For now, you should wait for the court´s resolution and see if there are further actions you need to take concerning your residence status.

Regards,