From 35705f7d1e234d18557344d4e734fe18ff6bfe45 Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Wed, 24 Jun 2026 13:25:14 +0200 Subject: [PATCH] fix(telegram): defer deep-link notices until the loading cover clears MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The stale-invite / welcome-on-redeem notices are raised during boot, so the native popup fired over the loading splash. Gate both the native popup and the in-app Modal on the current route's loading cover being gone — the tile splash on the lobby (splashDone), the plain loading screen elsewhere (app.ready) — so the notice appears with the settled screen on every build (Telegram and native/web alike). --- ui/src/components/StaleInviteModal.svelte | 9 +++++++-- ui/src/components/WelcomeRedeemModal.svelte | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/ui/src/components/StaleInviteModal.svelte b/ui/src/components/StaleInviteModal.svelte index ec60d8e..1ababd8 100644 --- a/ui/src/components/StaleInviteModal.svelte +++ b/ui/src/components/StaleInviteModal.svelte @@ -1,5 +1,6 @@ -{#if app.staleInvite && !(insideTelegram() && telegramDialogsAvailable())} +{#if app.staleInvite && ready && !(insideTelegram() && telegramDialogsAvailable())}

{parts[0]}{#if username}{/if}{parts[1] ?? ''}

diff --git a/ui/src/components/WelcomeRedeemModal.svelte b/ui/src/components/WelcomeRedeemModal.svelte index e7f58a0..9cbc2d9 100644 --- a/ui/src/components/WelcomeRedeemModal.svelte +++ b/ui/src/components/WelcomeRedeemModal.svelte @@ -1,5 +1,6 @@ -{#if app.welcomeRedeem && !(insideTelegram() && telegramDialogsAvailable())} +{#if app.welcomeRedeem && ready && !(insideTelegram() && telegramDialogsAvailable())}

{parts[0]}{#if username}{/if}{parts[1] ?? ''}