Skip to content

Commit 9093a5f

Browse files
authored
Copy room type on upgrade too (#1198)
MSC: matrix-org/matrix-spec-proposals#3818
1 parent 3c45c0a commit 9093a5f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Copy a room's `type` when upgrading it, as per [MSC3818](https://github.com/matrix-org/matrix-spec-proposals/pull/3818).

content/client-server-api/modules/room_upgrades.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ server:
3333
1. Checks that the user has permission to send `m.room.tombstone`
3434
events in the room.
3535

36-
2. Creates a replacement room with a `m.room.create` event containing a
37-
`predecessor` field and the applicable `room_version`.
36+
2. {{< changed-in v="1.4" >}} Creates a replacement room with a `m.room.create` event containing a
37+
`predecessor` field, the applicable `room_version`, and a `type` field
38+
which is copied from the `predecessor` room. If no `type` is set on the
39+
previous room, no `type` is specified on the new room's create event
40+
either.
3841

3942
3. Replicates transferable state events to the new room. The exact
4043
details for what is transferred is left as an implementation detail,

0 commit comments

Comments
 (0)