fix(presence): leaving Do Not Disturb restores your status instead of "dnd" (#283) #355
Merged
jared
merged 1 commits from 2026-10-12 13:12:51 -04:00
fix/dnd-restore-status into lotus
No Reviewers
Labels
Clear labels
a11y
area: appearance
area: auth-session
area: build-ci
area: calls
area: desktop
area: media
area: messaging
area: mobile
area: moderation
area: navigation
area: notifications
area: settings
area: threads
bug
dependencies
docs
duplicate
enhancement
help wanted
invalid
needs-human-review
performance
planning
priority: critical
priority: high
priority: low
priority: medium
qa
question
research
security
tech-debt
ux
wontfix
Accessibility: keyboard, screen reader, contrast, motion
Client area: appearance
Client area: auth-session
Client area: build-ci
Client area: calls
Client area: desktop
Client area: media
Client area: messaging
Client area: mobile
Client area: moderation
Client area: navigation
Client area: notifications
Client area: settings
Client area: threads
Something is not working
Third-party package versions and advisories
README / LOTUS_* docs wrong or missing
This issue or pull request already exists
New feature
Need some help
Something is wrong
Re-render storms, leaks, heavy work on hot paths
Data loss, security hole, or crash on a main path
Broken feature or serious usability problem
Minor issue or polish
Wrong behaviour in an edge case or notable degradation
Manual QA: shipped, needs a human in a real environment
More information is needed
XSS, unsafe URLs, data leaks, auth/session
Code health, dead code, fragile patterns
Usability or visual inconsistency
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: LotusGuild/cinny#355
Reference in New Issue
Block a user
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.
Refs #283. Stacked on #354: merge that first, and its commit then drops out of this diff.
Lotus encodes Do Not Disturb as
status_msg: "dnd". After switching back to Auto, the heartbeat read the server's status, adopted"dnd"as the user's own and kept re-sending it. The custom status was lost, other clients kept showing "dnd", and the Settings status field showed "dnd" too.Change
pickHeartbeatStatus(new unit test) never adopts the"dnd"sentinel; it falls back to the device's real status.Profileneither mirrors"dnd"into the local status nor shows it in the field.Verified on the local Synapse: "🎮 Gaming" → DND (
unavailable/dnd) → Auto →online/"🎮 Gaming". Before this, it ended asonline/dnd.Still open in #283: while you're in DND, other clients show the literal "dnd". Fixing that needs MSC3026 busy presence on the homeserver (matrix#19), so #283 stays open.
tscclean · unit tests 1334 pass · ESLint/Prettier clean.🤖 Generated with Claude Code
https://claude.ai/code/session_017PCb59uY3UKqDqt7B6hzd5