summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-12-12 10:56:14 +0000
committerErik Johnston <erik@matrix.org>2014-12-12 11:01:09 +0000
commit63810c777d8c02bc6fefa2a4bcfacb7f4df21ba2 (patch)
treebc85baa07a4715dab2fd7961c69058a2ac2a267b /synapse/api/constants.py
parentFix stream test. Make sure we add join to auth_events for invitiations (diff)
downloadsynapse-63810c777d8c02bc6fefa2a4bcfacb7f4df21ba2.tar.xz
Validate message, topic and name event contents
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r--synapse/api/constants.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py
index 7e8c892b64..b668da4a26 100644
--- a/synapse/api/constants.py
+++ b/synapse/api/constants.py
@@ -68,3 +68,8 @@ class EventTypes(object):
     PowerLevels = "m.room.power_levels"
     Aliases = "m.room.aliases"
     Redaction = "m.room.redaction"
+
+    # These are used for validation
+    Message = "m.room.message"
+    Topic = "m.room.topic"
+    Name = "m.room.name"