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
F18746705: D19233.diff
Fri, Oct 3, 1:14 PM
F18733781: D19233.id.diff
Tue, Sep 30, 10:41 PM
F18509449: D19233.id.diff
Fri, Sep 5, 3:24 AM
F18502414: D19233.diff
Thu, Sep 4, 10:25 PM
F18228929: D19233.id.diff
Aug 20 2025, 9:15 AM
F18215054: D19233.diff
Aug 19 2025, 6:20 AM
F18094994: D19233.diff
Aug 7 2025, 10:28 PM
F17943145: D19233.diff
Jul 31 2025, 7:38 AM
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
Branch
web1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 19870
Build 26928: Run Core Tests
Build 26927: arc lint + arc unit

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.