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 17:04:45 +0000
committerGitHub <noreply@github.com>2019-11-01 17:04:45 +0000
commitf496d2587723b0e802c49c210476266a19733f55 (patch)
tree9a2ea1817fdddec2f719e4ffe5d3150bf6f8599c /synapse/api/constants.py
parentFactor out an _AsyncEventContextImpl (#6298) (diff)
parentIncorporate review (diff)
downloadsynapse-f496d2587723b0e802c49c210476266a19733f55.tar.xz
Merge pull request #6301 from matrix-org/babolivier/msc2326
Implement MSC2326 (label based filtering)
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r--synapse/api/constants.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py
index 312196675e..49c4b85054 100644
--- a/synapse/api/constants.py
+++ b/synapse/api/constants.py
@@ -138,3 +138,10 @@ class LimitBlockingTypes(object):
 
     MONTHLY_ACTIVE_USER = "monthly_active_user"
     HS_DISABLED = "hs_disabled"
+
+
+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"