From 4caa1eb8d9e95f117f5c554dc19f2233d535fa7f Mon Sep 17 00:00:00 2001 From: Logan Johnson Date: Wed, 9 Sep 2026 13:04:14 -0400 Subject: [PATCH] fix(mobile): keep visit cancellation distinct from community change Signed-off-by: Logan Johnson --- .../features/channels/compose_bar/compose_bar_widget.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/lib/features/channels/compose_bar/compose_bar_widget.dart b/mobile/lib/features/channels/compose_bar/compose_bar_widget.dart index 3c9883bb2a..ea692ff96e 100644 --- a/mobile/lib/features/channels/compose_bar/compose_bar_widget.dart +++ b/mobile/lib/features/channels/compose_bar/compose_bar_widget.dart @@ -489,11 +489,11 @@ class ComposeBar extends HookConsumerWidget { identical(config, ref.read(relayConfigProvider)); void ensureAuthorizationCurrent() { if (!context.mounted) throw const _ComposeAuthorizationCancelled(); - if (visit != authorizationVisit.value || - !identical(config, ref.read(relayConfigProvider))) { + if (!identical(config, ref.read(relayConfigProvider))) { throw StateError('Community changed during authorization'); } - if (authorizationRevision != draftRevision.value) { + if (visit != authorizationVisit.value || + authorizationRevision != draftRevision.value) { throw const _ComposeAuthorizationCancelled(); } }