Prevent a sync request from removing a user's busy presence status (#12213)
In trying to use the MSC3026 busy presence status, the user's status would be set back to 'online' next time they synced. This change makes it so that syncing does not affect a user's presence status if it is currently set to 'busy': it must be removed through the presence API. The MSC defers to implementations on the behaviour of busy presence, so this ought to remain compatible with the MSC.
Showing
- changelog.d/12213.bugfix 1 addition, 0 deletionschangelog.d/12213.bugfix
- synapse/handlers/events.py 4 additions, 2 deletionssynapse/handlers/events.py
- synapse/handlers/presence.py 46 additions, 10 deletionssynapse/handlers/presence.py
- synapse/rest/client/sync.py 3 additions, 6 deletionssynapse/rest/client/sync.py
- tests/handlers/test_presence.py 79 additions, 0 deletionstests/handlers/test_presence.py
Loading
Please register or sign in to comment