mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-09 06:55:37 -05:00
DND Hotfix
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user