Browse Source

fix(neon): Fix UnifiedPush distributors not showing up in settings

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/1117/head
jld3103 1 year ago
parent
commit
652f4156ab
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 6
      packages/neon/neon/lib/src/utils/global_options.dart

6
packages/neon/neon/lib/src/utils/global_options.dart

@ -118,9 +118,9 @@ class GlobalOptions extends OptionsCollection {
), ),
); );
final allowed = pushNotificationsDistributor.values.containsKey(pushNotificationsDistributor.value); final enabled = pushNotificationsDistributor.values.isNotEmpty;
pushNotificationsEnabled.enabled = allowed; pushNotificationsEnabled.enabled = enabled;
if (!allowed) { if (!enabled) {
pushNotificationsDistributor.reset(); pushNotificationsDistributor.reset();
pushNotificationsEnabled.reset(); pushNotificationsEnabled.reset();
} }

Loading…
Cancel
Save