mirror of
https://github.com/block/buzz.git
synced 2026-10-28 21:11:48 +00:00
fix(mobile): keep visit cancellation distinct from community change
Signed-off-by: Logan Johnson <loganj@squareup.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user