Skip to content
Snippets Groups Projects
Commit 2dc2b6e9 authored by Valentin Anger's avatar Valentin Anger Committed by Richard van der Hoff
Browse files

Allow "unavailable" presence status for /sync (#4592)


* Allow "unavailable" presence status for /sync

Closes #3772, closes #3779

Signed-off-by: default avatarValentin Anger <valentin.an.1999@gmail.com>

* Add changelog for PR 4592
parent 56710c7d
No related branches found
No related tags found
No related merge requests found
Allow the "unavailable" presence status for /sync.
This change makes Synapse compliant with r0.4.0 of the Client-Server specification.
......@@ -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__()
......
......@@ -38,6 +38,7 @@ class VersionsRestServlet(RestServlet):
"r0.1.0",
"r0.2.0",
"r0.3.0",
"r0.4.0",
],
# as per MSC1497:
"unstable_features": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment