mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Don't assert an event must have an event ID
This commit is contained in:
parent
840068bd78
commit
610f0830b0
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user