From eff074d08c3eacbffb03843f77e89feb3025f4dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Wed, 25 Nov 2026 13:51:10 +0100 Subject: [PATCH] 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. --- desktop/src/lib/auth.svelte.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/desktop/src/lib/auth.svelte.ts b/desktop/src/lib/auth.svelte.ts index 84e3a9f27..c8c6f2aa5 100644 --- a/desktop/src/lib/auth.svelte.ts +++ b/desktop/src/lib/auth.svelte.ts @@ -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();