Page MenuHomePhabricator

Correct the behavior of "Desktop Only" in Notifications preferences
ClosedPublic

Authored by epriestley on Mar 16 2018, 10:13 PM.
Tags
None
Referenced Files
F19081281: D19233.diff
Tue, Dec 2, 5:43 AM
F19044366: D19233.id.diff
Thu, Nov 27, 2:36 AM
F18855625: D19233.diff
Nov 1 2025, 5:57 AM
F18799388: D19233.id46054.diff
Oct 17 2025, 1:36 PM
F18799255: D19233.diff
Oct 17 2025, 12:54 PM
F18766483: D19233.id46053.diff
Oct 7 2025, 4:56 PM
F18749092: D19233.id46054.diff
Oct 4 2025, 2:22 AM
F18747216: D19233.id46053.diff
Oct 3 2025, 3:07 PM
Subscribers
None

Details

Summary

See https://discourse.phabricator-community.org/t/desktop-only-notifications-mode-is-broken/1234. Ref T13102. The "Desktop Only" mode for notifications currently shows both desktop and web notifications.

In fact, JX.Notification currently has no ability to render notifications as desktop-only. Make this work.

Note that many of the variables and parameters here, including showAnyNotification, web_ready, and desktop_ready, are named in an incorrect or misleading way. However, the new behavior appears to be correct.

Test Plan
  • Emitted test notifications in "No Notifications", "Web Only", "Web and Desktop", and "Desktop" modes.
  • Saw appropriate notifications appear in the UI.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 16 2018, 10:17 PM
This revision was automatically updated to reflect the committed changes.