From f6b3884f365bbc02d7cde6ad377ce6f5d0cfae27 Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Fri, 9 Sep 2022 18:16:37 +0100 Subject: Remove the 's' from EventFormatVersions --- synapse/events/builder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'synapse/events/builder.py') 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 -- cgit 1.5.1