summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2019-05-20 15:43:08 -0500
committerAmber Brown <hawkowl@atleastfornow.net>2019-05-20 15:43:08 -0500
commitd142e51f76f8f29b5ce040251803a3fbd3f4a4f4 (patch)
treedc87d11ac9f6c138701a9f85272c41fe094c3067 /synapse/api/constants.py
parentMerge remote-tracking branch 'origin/develop' into shhs (diff)
parentRevert "expose SlavedProfileStore to ClientReaderSlavedStore (#5200)" (diff)
downloadsynapse-d142e51f76f8f29b5ce040251803a3fbd3f4a4f4.tar.xz
Merge remote-tracking branch 'origin/develop' into shhs
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 8547a63535..6b347b1749 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): @@ -116,3 +119,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"