summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-06-17 12:53:27 -0400
committerGitHub <noreply@github.com>2021-06-17 12:53:27 -0400
commit8c97d5863f352e48cb4e64a5b663411a7779686d (patch)
treea6bb21951f6cf983d5531e74991b46e111d931dd /synapse/api
parentEnsure that we do not cache empty sync responses after a timeout (#10158) (diff)
downloadsynapse-8c97d5863f352e48cb4e64a5b663411a7779686d.tar.xz
Update MSC3083 support per changes in the MSC. (#10189)
Adds a "type" field and generalize "space" to "room_id".
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/constants.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py
index ca13843680..6c3958f7ab 100644
--- a/synapse/api/constants.py
+++ b/synapse/api/constants.py
@@ -65,6 +65,12 @@ class JoinRules:
     MSC3083_RESTRICTED = "restricted"
 
 
+class RestrictedJoinRuleTypes:
+    """Understood types for the allow rules in restricted join rules."""
+
+    ROOM_MEMBERSHIP = "m.room_membership"
+
+
 class LoginType:
     PASSWORD = "m.login.password"
     EMAIL_IDENTITY = "m.login.email.identity"