aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/NotifyConfig.js2
-rw-r--r--shared/test_notify_config.js3
2 files changed, 1 insertions, 4 deletions
diff --git a/shared/NotifyConfig.js b/shared/NotifyConfig.js
index 6fc98e6..47fa0f6 100644
--- a/shared/NotifyConfig.js
+++ b/shared/NotifyConfig.js
@@ -73,8 +73,6 @@ function withheld(cfg, n, dnd) {
// Whether a queued notification's balloon is on screen at `now`: the drawer
// and snooze withhold everything, then mute and DND, then its own expiry.
-// The balloon shell and the desktop companion both ask this, so they cannot
-// disagree about what is showing.
function shown(cfg, n, dnd, drawerOpen, snoozeUntil, now) {
if (drawerOpen || snoozeUntil > now) return false;
if (withheld(cfg, n, dnd)) return false;
diff --git a/shared/test_notify_config.js b/shared/test_notify_config.js
index 4e8db23..bb44521 100644
--- a/shared/test_notify_config.js
+++ b/shared/test_notify_config.js
@@ -64,8 +64,7 @@ assert.strictEqual(C.soundFor(sc, sn("critical", "/app.oga", true)), "");
// An old daemon publishes neither field.
assert.strictEqual(C.soundFor(sc, { app: "x", urgency: "critical" }), "/c.oga");
-// On screen: the drawer, snooze, mute, DND and expiry, in one check that
-// the balloons and the desktop companion share.
+// On screen: the drawer, snooze, mute, DND and expiry, in one check.
const live = { app: "ok", urgency: "normal", expires: 0 };
assert.strictEqual(C.shown(cfg, live, false, false, 0, 5000), true);
assert.strictEqual(C.shown(cfg, live, false, true, 0, 5000), false); // drawer open