From d2b4520990419a3ed8f4d1a93ae379a998ed56e6 Mon Sep 17 00:00:00 2001 From: Henrique Velloso Date: Fri, 20 Feb 2026 13:03:08 -0300 Subject: [PATCH] hotfix(trust-dialog): show "Always trust" based on signed-in state Use `Signer.activePubkeyProvider` to determine if user is signed in, instead of `activeProfileProvider(LocalSource())`. The profile can be null while user is already authenticated, which was hiding the "Always trust" switch incorrectly. This keeps the switch visible for signed-in users and hidden for signed-out users, matching the actual trust persistence capability. --- lib/widgets/install_alert_dialog.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/widgets/install_alert_dialog.dart b/lib/widgets/install_alert_dialog.dart index 366ea2c..57d8047 100644 --- a/lib/widgets/install_alert_dialog.dart +++ b/lib/widgets/install_alert_dialog.dart @@ -35,7 +35,7 @@ class InstallAlertDialog extends HookConsumerWidget { return const SizedBox.shrink(); } final trustedSignerNotifier = useState(false); - final profile = ref.watch(Signer.activeProfileProvider(LocalSource())); + final signedInPubkey = ref.watch(Signer.activePubkeyProvider); final theme = Theme.of(context); final baseTextSize = theme.textTheme.bodyMedium?.fontSize ?? 14.0; @@ -62,7 +62,7 @@ class InstallAlertDialog extends HookConsumerWidget { size: baseTextSize, ), ] else ...[ - profile != null + signedInPubkey != null ? RelevantWhoFollowContainer(app: app, size: baseTextSize) : Column( crossAxisAlignment: CrossAxisAlignment.start, @@ -85,7 +85,7 @@ class InstallAlertDialog extends HookConsumerWidget { ], ), // Only show "Always trust" when signed in (requires signer to persist) - if (profile != null) ...[ + if (signedInPubkey != null) ...[ const Gap(14), Row( crossAxisAlignment: CrossAxisAlignment.center,