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(); } }