Invalid API origin when switching back to the official instance from a self-hosted one

(#1873) Bug Fixed mobile self-hosting

Thread

Comment by Radiant Xyz
Can reproduce when trying to switch accounts after logging in with a self-hosted instance, the bottom sheet does not accept the official URL anymore, the "Connect" button is without function when tapping; Version 1.0.0, Beta 32, Channel Beta, Build 2160, Android 16 (arm64), Device samsung SM-S938B, Locale de-DE, Push fcm, Flutter 3.44.5, Dart 3.12.2