mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-28 17:50:28 +08:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user