Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit cba5bbd

Browse files
committed
Introduce room v4 which updates event ID format.
Implements matrix-org/matrix-spec-proposals#2002.
1 parent 24b93b9 commit cba5bbd

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

changelog.d/5210.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Add a new room version which uses a new event ID format.
1+
Add a room version 4 which uses a new event ID format, as per [MSC2002](https://github.com/matrix-org/matrix-doc/pull/2002).

changelog.d/5217.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add a room version 4 which uses a new event ID format, as per [MSC2002](https://github.com/matrix-org/matrix-doc/pull/2002).

synapse/api/room_versions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ class RoomVersions(object):
7777
EventFormatVersions.V2,
7878
StateResolutionVersions.V2,
7979
)
80-
EVENTID_NOSLASH_TEST = RoomVersion(
81-
"eventid-noslash-test",
82-
RoomDisposition.UNSTABLE,
80+
V4 = RoomVersion(
81+
"4",
82+
RoomDisposition.STABLE,
8383
EventFormatVersions.V3,
8484
StateResolutionVersions.V2,
8585
)
@@ -95,6 +95,6 @@ class RoomVersions(object):
9595
RoomVersions.V2,
9696
RoomVersions.V3,
9797
RoomVersions.STATE_V2_TEST,
98-
RoomVersions.EVENTID_NOSLASH_TEST,
98+
RoomVersions.V4,
9999
)
100100
} # type: dict[str, RoomVersion]

0 commit comments

Comments
 (0)