Fix NotificationsEnabledController inverse understanding of master push rule

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-06-16 19:39:18 +01:00
parent 1628fc668c
commit 3472fcdec5
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ export class NotificationsEnabledController extends SettingController {
if (!getNotifier().isPossible()) return false;
if (calculatedValue === null || calculatedAtLevel === "default") {
return isMasterRuleEnabled();
return !isMasterRuleEnabled();
}
return calculatedValue;
@ -63,7 +63,7 @@ export class NotificationBodyEnabledController extends SettingController {
if (!getNotifier().isPossible()) return false;
if (calculatedValue === null) {
return isMasterRuleEnabled();
return !isMasterRuleEnabled();
}
return calculatedValue;