summary refs log tree commit diff
path: root/synapse/events
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-01-29 17:23:47 +0000
committerErik Johnston <erik@matrix.org>2019-01-29 18:02:26 +0000
commit610f0830b09fd1ef33c1ef9aa4c32d4eb411c289 (patch)
tree508ba4047287db87a5e519672e44886be90c6b39 /synapse/events
parentOnly check event ID domain for signatures for V1 events (diff)
downloadsynapse-610f0830b09fd1ef33c1ef9aa4c32d4eb411c289.tar.xz
Don't assert an event must have an event ID
Diffstat (limited to 'synapse/events')
-rw-r--r--synapse/events/validator.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/events/validator.py b/synapse/events/validator.py
index c53bf44e51..a072674b02 100644
--- a/synapse/events/validator.py
+++ b/synapse/events/validator.py
@@ -15,7 +15,7 @@
 
 from six import string_types
 
-from synapse.api.constants import EventTypes, Membership
+from synapse.api.constants import EventFormatVersions, EventTypes, Membership
 from synapse.api.errors import SynapseError
 from synapse.types import EventID, RoomID, UserID
 
@@ -29,7 +29,8 @@ class EventValidator(object):
         """
         self.validate_builder(event)
 
-        EventID.from_string(event.event_id)
+        if event.format_version == EventFormatVersions.V1:
+            EventID.from_string(event.event_id)
 
         required = [
             "auth_events",