Skip to content

Commit 3472fcd

Browse files
committed
Fix NotificationsEnabledController inverse understanding of master push rule
Signed-off-by: Michael Telatynski <[email protected]>
1 parent 1628fc6 commit 3472fcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/settings/controllers/NotificationControllers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class NotificationsEnabledController extends SettingController {
4545
if (!getNotifier().isPossible()) return false;
4646

4747
if (calculatedValue === null || calculatedAtLevel === "default") {
48-
return isMasterRuleEnabled();
48+
return !isMasterRuleEnabled();
4949
}
5050

5151
return calculatedValue;
@@ -63,7 +63,7 @@ export class NotificationBodyEnabledController extends SettingController {
6363
if (!getNotifier().isPossible()) return false;
6464

6565
if (calculatedValue === null) {
66-
return isMasterRuleEnabled();
66+
return !isMasterRuleEnabled();
6767
}
6868

6969
return calculatedValue;

0 commit comments

Comments
 (0)