mirror of
https://github.com/element-hq/synapse
synced 2024-09-10 16:35:10 +00:00
Don't assert an event must have an event ID
This commit is contained in:
parent
840068bd78
commit
610f0830b0
1 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
from six import string_types
|
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.api.errors import SynapseError
|
||||||
from synapse.types import EventID, RoomID, UserID
|
from synapse.types import EventID, RoomID, UserID
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@ class EventValidator(object):
|
||||||
"""
|
"""
|
||||||
self.validate_builder(event)
|
self.validate_builder(event)
|
||||||
|
|
||||||
|
if event.format_version == EventFormatVersions.V1:
|
||||||
EventID.from_string(event.event_id)
|
EventID.from_string(event.event_id)
|
||||||
|
|
||||||
required = [
|
required = [
|
||||||
|
|
Loading…
Reference in a new issue