diff options
author | reivilibre <oliverw@matrix.org> | 2022-09-07 10:08:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 11:08:20 +0100 |
commit | c2fe48a6ffb99f553f3eaecb8f15bcbedb58add0 (patch) | |
tree | e9c6f09d739b503c9a15161e3502944b0c022c84 /synapse/events/validator.py | |
parent | Add Admin API to Fetch Messages Within a Particular Window (#13672) (diff) | |
download | synapse-c2fe48a6ffb99f553f3eaecb8f15bcbedb58add0.tar.xz |
Rename the `EventFormatVersions` enum values so that they line up with room version numbers. (#13706)
Diffstat (limited to 'synapse/events/validator.py')
-rw-r--r-- | synapse/events/validator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/events/validator.py b/synapse/events/validator.py index 27c8beba25..a6f0104396 100644 --- a/synapse/events/validator.py +++ b/synapse/events/validator.py @@ -45,7 +45,7 @@ class EventValidator: """ self.validate_builder(event) - if event.format_version == EventFormatVersions.V1: + if event.format_version == EventFormatVersions.ROOM_V1_V2: EventID.from_string(event.event_id) required = [ |