1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-09 06:55:37 -05:00

DND Hotfix

This commit is contained in:
purian23
2025-07-21 00:50:33 -04:00
parent 6f54e592ba
commit 92908b6e0e

View File

@@ -73,6 +73,10 @@ Singleton {
} }
function isAppBlocked(appName) { function isAppBlocked(appName) {
const appKey = appName.toLowerCase();
if (appKey === "notify-send" || appKey === "libnotify") {
return false;
}
return getAppSetting(appName, "blocked", false); return getAppSetting(appName, "blocked", false);
} }
@@ -117,14 +121,14 @@ Singleton {
return false; return false;
} }
// Check Do Not Disturb mode // DND logic temporarily disabled for all notifications
if (isInDoNotDisturbMode()) { // if (isInDoNotDisturbMode()) {
// Allow critical notifications if configured // // Allow critical notifications if configured
if (allowCriticalInDND && notification.urgency === 2) { // if (allowCriticalInDND && notification.urgency === 2) {
return true; // return true;
} // }
return false; // return false;
} // }
return true; return true;
} }