Skip to content

Commit

Permalink
Merge pull request #1117 from nextcloud/fix/neon/unifiedpush-distribu…
Browse files Browse the repository at this point in the history
…tors-settings
  • Loading branch information
provokateurin authored Nov 6, 2023
2 parents b377575 + 652f415 commit c127cab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/neon/neon/lib/src/utils/global_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ class GlobalOptions extends OptionsCollection {
),
);

final allowed = pushNotificationsDistributor.values.containsKey(pushNotificationsDistributor.value);
pushNotificationsEnabled.enabled = allowed;
if (!allowed) {
final enabled = pushNotificationsDistributor.values.isNotEmpty;
pushNotificationsEnabled.enabled = enabled;
if (!enabled) {
pushNotificationsDistributor.reset();
pushNotificationsEnabled.reset();
}
Expand Down

0 comments on commit c127cab

Please sign in to comment.