You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Alerts from: a PC turned off by its name in another PC's roster still alerts directly #2876
Follow-up from #2870 (Settings → Alerts → Alerts from).
What happens: a device's list of PCs it hears nothing of (pcs_off) holds PC names as the roster it was set in names them. Each PC's own server knows itself only by hostname() (server/push.tspcName). When a PC is labelled otherwise in another PC's roster (a relay PC named at pairing, an SSH PC shown by its address or a custom name), turning it off there silences only the alerts that roster's server forwards. A phone that also subscribes to that PC directly (the phone app does, one subscription per PC) keeps getting its alerts.
Reproduced in review (#2870): a subscription with pcs_off: ["Work PC"] on a server whose hostname is devswha-ThinkStation-P620, created as server/core/status.ts creates it (no localName), still sent the blocked alert.
Fix direction: key a PC by an identity both its roster entry and its own server know (the relay server_id where there is one, or a per-install PC id served in the roster and known to the server itself), and keep the name only for display. Until then, a PC turned off is reliably silent only for the alerts that reach the device through the server whose roster it was turned off in.
Activity
fix(alerts): turn a PC's alerts off by its relay ID, which its own se…