Fix NotificationsEnabledController inverse understanding of master push rule
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -45,7 +45,7 @@ export class NotificationsEnabledController extends SettingController {
|
|||||||
if (!getNotifier().isPossible()) return false;
|
if (!getNotifier().isPossible()) return false;
|
||||||
|
|
||||||
if (calculatedValue === null || calculatedAtLevel === "default") {
|
if (calculatedValue === null || calculatedAtLevel === "default") {
|
||||||
return isMasterRuleEnabled();
|
return !isMasterRuleEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
return calculatedValue;
|
return calculatedValue;
|
||||||
@@ -63,7 +63,7 @@ export class NotificationBodyEnabledController extends SettingController {
|
|||||||
if (!getNotifier().isPossible()) return false;
|
if (!getNotifier().isPossible()) return false;
|
||||||
|
|
||||||
if (calculatedValue === null) {
|
if (calculatedValue === null) {
|
||||||
return isMasterRuleEnabled();
|
return !isMasterRuleEnabled();
|
||||||
}
|
}
|
||||||
|
|
||||||
return calculatedValue;
|
return calculatedValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user