summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-05-16 09:34:12 +0100
committerGitHub <noreply@github.com>2019-05-16 09:34:12 +0100
commitf201a30244db6369db80169be3258fa3c1f36150 (patch)
treedee49724772693585e4cb3ef2324e86ab00aaedd /synapse/api/constants.py
parentMerge branch 'erikj/refactor_pagination_bounds' into erikj/reactions_base (diff)
parentActually check for None rather falsey (diff)
downloadsynapse-f201a30244db6369db80169be3258fa3c1f36150.tar.xz
Merge pull request #5186 from matrix-org/erikj/simple_pagination
Add simple relations API
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r--synapse/api/constants.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py

index 8547a63535..30bebd749f 100644 --- a/synapse/api/constants.py +++ b/synapse/api/constants.py
@@ -116,3 +116,11 @@ class UserTypes(object): """ SUPPORT = "support" ALL_USER_TYPES = (SUPPORT,) + + +class RelationTypes(object): + """The types of relations known to this server. + """ + ANNOTATION = "m.annotation" + REPLACES = "m.replaces" + REFERENCES = "m.references"