mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 17:55:06 -04:00
Implement MSC3026: busy presence state
This commit is contained in:
parent
7b06f85c0e
commit
405aeb0b2c
6 changed files with 27 additions and 1 deletions
|
@ -439,6 +439,7 @@ class GenericWorkerPresence(BasePresenceHandler):
|
|||
PresenceState.ONLINE,
|
||||
PresenceState.UNAVAILABLE,
|
||||
PresenceState.OFFLINE,
|
||||
PresenceState.BUSY,
|
||||
)
|
||||
if presence not in valid_presence:
|
||||
raise SynapseError(400, "Invalid presence state")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue