summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-06-11 10:37:07 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-06-11 10:55:53 +0100
commit3c8262b181489c1f2f7a4de50c9171b0239edd17 (patch)
tree54ce2c87d121a6f96209d229633d110c95125486 /synapse/api/constants.py
parentMerge branch 'babolivier/account_validity_send_mail_auth' into dinsic (diff)
parent0.99.5.2 (diff)
downloadsynapse-3c8262b181489c1f2f7a4de50c9171b0239edd17.tar.xz
Merge branch 'master' into dinsic
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r--synapse/api/constants.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py

index 5664c41793..cdf24f5ebc 100644 --- a/synapse/api/constants.py +++ b/synapse/api/constants.py
@@ -23,6 +23,9 @@ MAX_DEPTH = 2**63 - 1 # the maximum length for a room alias is 255 characters MAX_ALIAS_LENGTH = 255 +# the maximum length for a user id is 255 characters +MAX_USERID_LENGTH = 255 + class Membership(object): @@ -117,3 +120,11 @@ class UserTypes(object): """ SUPPORT = "support" ALL_USER_TYPES = (SUPPORT,) + + +class RelationTypes(object): + """The types of relations known to this server. + """ + ANNOTATION = "m.annotation" + REPLACE = "m.replace" + REFERENCE = "m.reference"