mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-24 07:44:08 -04:00
Rename the EventFormatVersions
enum values so that they line up with room version numbers. (#13706)
This commit is contained in:
parent
bb5b47b62a
commit
c2fe48a6ff
13 changed files with 47 additions and 41 deletions
|
@ -513,7 +513,7 @@ class EventFederationWorkerStoreTestCase(tests.unittest.HomeserverTestCase):
|
|||
|
||||
def prev_event_format(prev_event_id: str) -> Union[Tuple[str, dict], str]:
|
||||
"""Account for differences in prev_events format across room versions"""
|
||||
if room_version.event_format == EventFormatVersions.V1:
|
||||
if room_version.event_format == EventFormatVersions.ROOM_V1_V2:
|
||||
return prev_event_id, {}
|
||||
|
||||
return prev_event_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue