diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2021-06-17 12:53:27 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 12:53:27 -0400 |
commit | 8c97d5863f352e48cb4e64a5b663411a7779686d (patch) | |
tree | a6bb21951f6cf983d5531e74991b46e111d931dd /synapse/api | |
parent | Ensure that we do not cache empty sync responses after a timeout (#10158) (diff) | |
download | synapse-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.py | 6 |
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" |