summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-11-01 10:30:51 +0000
committerBrendan Abolivier <babolivier@matrix.org>2019-11-01 10:30:51 +0000
commitc6dbca2422bf77ccbf0b52d9245d28c258dac4f3 (patch)
tree5d64880c7758de63454de2e0df5949bfe03e7073 /synapse/api/constants.py
parentLint (diff)
downloadsynapse-c6dbca2422bf77ccbf0b52d9245d28c258dac4f3.tar.xz
Incorporate review
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r--synapse/api/constants.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py
index 999ec02fd9..cf4ce5f5a2 100644
--- a/synapse/api/constants.py
+++ b/synapse/api/constants.py
@@ -140,4 +140,7 @@ class LimitBlockingTypes(object):
     HS_DISABLED = "hs_disabled"
 
 
-LabelsField = "org.matrix.labels"
+class EventContentFields(object):
+    """Fields found in events' content, regardless of type."""
+    # Labels for the event, cf https://github.com/matrix-org/matrix-doc/pull/2326
+    Labels = "org.matrix.labels"