Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Allow "unavailable" presence status for /sync (#4592)
Browse files Browse the repository at this point in the history
* Allow "unavailable" presence status for /sync

Closes #3772, closes #3779

Signed-off-by: Valentin Anger <[email protected]>

* Add changelog for PR 4592
  • Loading branch information
SyrupThinker authored and richvdh committed Feb 8, 2019
1 parent 56710c7 commit 2dc2b6e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog.d/4592.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Allow the "unavailable" presence status for /sync.
This change makes Synapse compliant with r0.4.0 of the Client-Server specification.
2 changes: 1 addition & 1 deletion synapse/rest/client/v2_alpha/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class SyncRestServlet(RestServlet):
"""

PATTERNS = client_v2_patterns("/sync$")
ALLOWED_PRESENCE = set(["online", "offline"])
ALLOWED_PRESENCE = set(["online", "offline", "unavailable"])

def __init__(self, hs):
super(SyncRestServlet, self).__init__()
Expand Down
1 change: 1 addition & 0 deletions synapse/rest/client/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def on_GET(self, request):
"r0.1.0",
"r0.2.0",
"r0.3.0",
"r0.4.0",
],
# as per MSC1497:
"unstable_features": {
Expand Down

0 comments on commit 2dc2b6e

Please sign in to comment.