From 3472fcdec5f5bd70c66acf26fff949a38ea55408 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 16 Jun 2020 19:39:18 +0100 Subject: [PATCH] Fix NotificationsEnabledController inverse understanding of master push rule Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/settings/controllers/NotificationControllers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/settings/controllers/NotificationControllers.js b/src/settings/controllers/NotificationControllers.js index 395da765a1..f74dc22e84 100644 --- a/src/settings/controllers/NotificationControllers.js +++ b/src/settings/controllers/NotificationControllers.js @@ -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;