summary refs log tree commit diff
path: root/synapse/events/validator.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/events/validator.py')
-rw-r--r--synapse/events/validator.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/synapse/events/validator.py b/synapse/events/validator.py
index 4fa03501f8..c53bf44e51 100644
--- a/synapse/events/validator.py
+++ b/synapse/events/validator.py
@@ -54,20 +54,6 @@ class EventValidator(object):
             if not isinstance(getattr(event, s), string_types):
                 raise SynapseError(400, "'%s' not a string type" % (s,))
 
-        if event.type == EventTypes.Message:
-            content_strings = [
-                "body",
-                "msgtype",
-            ]
-
-            self._ensure_strings(event.content, content_strings)
-
-        elif event.type == EventTypes.Topic:
-            self._ensure_strings(event.content, ["topic"])
-
-        elif event.type == EventTypes.Name:
-            self._ensure_strings(event.content, ["name"])
-
     def validate_builder(self, event):
         """Validates that the builder/event has roughly the right format. Only
         checks values that we expect a proto event to have, rather than all the