Browse Source

Merge pull request #1117 from nextcloud/fix/neon/unifiedpush-distributors-settings

pull/1120/head
Kate 1 year ago committed by GitHub
parent
commit
c127cabb67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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