diff options
author | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2022-09-09 18:16:37 +0100 |
---|---|---|
committer | Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | 2022-09-09 18:16:37 +0100 |
commit | f6b3884f365bbc02d7cde6ad377ce6f5d0cfae27 (patch) | |
tree | f7f8ef1b28aba3a963936dc8f9ea0479c75ef3f5 /synapse/events/builder.py | |
parent | Make EventFormatVersions an enum (diff) | |
download | synapse-f6b3884f365bbc02d7cde6ad377ce6f5d0cfae27.tar.xz |
Remove the 's' from EventFormatVersions
Diffstat (limited to 'synapse/events/builder.py')
-rw-r--r-- | synapse/events/builder.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/events/builder.py b/synapse/events/builder.py index 746bd3978d..2c36164ca2 100644 --- a/synapse/events/builder.py +++ b/synapse/events/builder.py @@ -20,7 +20,7 @@ from signedjson.types import SigningKey from synapse.api.constants import MAX_DEPTH from synapse.api.room_versions import ( KNOWN_EVENT_FORMAT_VERSIONS, - EventFormatVersions, + EventFormatVersion, RoomVersion, ) from synapse.crypto.event_signing import add_hashes_and_signatures @@ -137,7 +137,7 @@ class EventBuilder: # The types of auth/prev events changes between event versions. prev_events: Union[List[str], List[Tuple[str, Dict[str, str]]]] auth_events: Union[List[str], List[Tuple[str, Dict[str, str]]]] - if format_version == EventFormatVersions.ROOM_V1_V2: + if format_version == EventFormatVersion.ROOM_V1_V2: auth_events = await self._store.add_event_hashes(auth_event_ids) prev_events = await self._store.add_event_hashes(prev_event_ids) else: @@ -253,7 +253,7 @@ def create_local_event_from_event_dict( time_now = int(clock.time_msec()) - if format_version == EventFormatVersions.ROOM_V1_V2: + if format_version == EventFormatVersion.ROOM_V1_V2: event_dict["event_id"] = _create_event_id(clock, hostname) event_dict["origin"] = hostname |