mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 17:44:10 -04:00
Remove room_version
param from validate_event_for_room_version
Instead, use the `room_version` property of the event we're validating. The `room_version` was originally added as a parameter somewhere around #4482, but really it's been redundant since #6875 added a `room_version` field to `EventBase`.
This commit is contained in:
parent
2959184a42
commit
68be42f6b6
6 changed files with 14 additions and 14 deletions
|
@ -35,6 +35,10 @@ class EventValidator:
|
|||
def validate_new(self, event: EventBase, config: HomeServerConfig) -> None:
|
||||
"""Validates the event has roughly the right format
|
||||
|
||||
Suitable for checking a locally-created event. It has stricter checks than
|
||||
is appropriate for an event received over federation (for which, see
|
||||
event_auth.validate_event_for_room_version)
|
||||
|
||||
Args:
|
||||
event: The event to validate.
|
||||
config: The homeserver's configuration.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue