desktop: Don't leave a loading page for the inbox

The auth check took a page that loaded slower than its interval for the
booting screen and replaced it with the inbox.
This commit is contained in:
Rūdolfs Ošiņš
2026-11-25 13:51:10 +01:00
parent 2f411acec2
commit eff074d08c
+6 -1
View File
@@ -23,7 +23,12 @@ export async function checkAuth() {
checkAuth,
import.meta.env.VITE_AUTH_LONG_DELAY || 30_000,
);
if (get(router.activeRouteStore).resource === "booting") {
// Only leave the booting screen after a failed authentication. On a
// normal start the route is still booting while the first page loads.
if (
startup.error !== undefined &&
get(router.activeRouteStore).resource === "booting"
) {
void router.push({ resource: "inbox" }).finally(deepLinksReady);
} else {
deepLinksReady();