usePresenceUpdater sent a one-off PUT /presence. Meanwhile the SDK kept long-polling /sync with the default set_presence=online, and Synapse treats every sync as "online". So Invisible, Hide Online Status, Idle and DND flipped back to online within seconds: a privacy setting that silently didn't work.
Change: the presence helpers also call mx.setSyncPresence(), the way Element keeps a manual state:
offline for Invisible and Hide Online Status;
unavailable for Idle and DND (and for auto-mode idle or a hidden tab);
online otherwise.
The PUT stays for the immediate change.
Verified on the local Synapse. In each mode, after a reload, another account polled GET /presence every 5 s for 60 s:
mode
before
after (12 samples)
/sync set_presence
Invisible
online* ×8
offline ×12
offline
Hide Online Status
online*
offline ×12
offline
Idle
online
unavailable ×12
unavailable
DND
online
unavailable ×12
unavailable
Online
online*
online* ×12
online
(* = currently_active)
tsc clean · unit tests pass · ESLint/Prettier clean.
Fixes #282.
`usePresenceUpdater` sent a one-off `PUT /presence`. Meanwhile the SDK kept long-polling `/sync` with the default `set_presence=online`, and Synapse treats every sync as "online". So **Invisible**, **Hide Online Status**, **Idle** and **DND** flipped back to online within seconds: a privacy setting that silently didn't work.
**Change:** the presence helpers also call `mx.setSyncPresence()`, the way Element keeps a manual state:
- `offline` for Invisible and Hide Online Status;
- `unavailable` for Idle and DND (and for auto-mode idle or a hidden tab);
- `online` otherwise.
The PUT stays for the immediate change.
**Verified** on the local Synapse. In each mode, after a reload, another account polled `GET /presence` every 5 s for 60 s:
| mode | before | after (12 samples) | `/sync` set_presence |
|---|---|---|---|
| Invisible | online* ×8 | **offline** ×12 | offline |
| Hide Online Status | online* | **offline** ×12 | offline |
| Idle | online | **unavailable** ×12 | unavailable |
| DND | online | **unavailable** ×12 | unavailable |
| Online | online* | online* ×12 | online |
(* = currently_active)
`tsc` clean · unit tests pass · ESLint/Prettier clean.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5
usePresenceUpdater sent a one-off PUT /presence, but the SDK kept
long-polling /sync with the default set_presence=online and Synapse treats
every sync as "online", so Invisible / Hide Online Status / Idle / DND
flipped back within seconds — a privacy setting that silently didn't work.
The presence helpers now also call mx.setSyncPresence(): offline for
Invisible / Hide Online Status, unavailable for Idle / DND (and auto-mode
idle / hidden tab), online otherwise. The PUT stays for the immediate
change.
Verified on the local Synapse, another account polling every 5 s for 60 s
after a reload in each mode: invisible → offline ×12, hidePresence →
offline ×12, idle → unavailable ×12, dnd → unavailable ×12, online →
online (currently_active) ×12; /sync carries set_presence=offline /
unavailable / online accordingly (before: online* throughout).
Fixes#282
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes #282.
usePresenceUpdatersent a one-offPUT /presence. Meanwhile the SDK kept long-polling/syncwith the defaultset_presence=online, and Synapse treats every sync as "online". So Invisible, Hide Online Status, Idle and DND flipped back to online within seconds: a privacy setting that silently didn't work.Change: the presence helpers also call
mx.setSyncPresence(), the way Element keeps a manual state:offlinefor Invisible and Hide Online Status;unavailablefor Idle and DND (and for auto-mode idle or a hidden tab);onlineotherwise.The PUT stays for the immediate change.
Verified on the local Synapse. In each mode, after a reload, another account polled
GET /presenceevery 5 s for 60 s:/syncset_presence(* = currently_active)
tscclean · unit tests pass · ESLint/Prettier clean.🤖 Generated with Claude Code
https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5