Copy room type on upgrade too (#1198)

MSC: https://github.com/matrix-org/matrix-spec-proposals/pull/3818
This commit is contained in:
Travis Ralston 2022-08-03 15:09:14 -04:00 committed by GitHub
parent 3c45c0aeb4
commit 9093a5f16f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -0,0 +1 @@
Copy a room's `type` when upgrading it, as per [MSC3818](https://github.com/matrix-org/matrix-spec-proposals/pull/3818).

View file

@ -33,8 +33,11 @@ server:
1. Checks that the user has permission to send `m.room.tombstone` 1. Checks that the user has permission to send `m.room.tombstone`
events in the room. events in the room.
2. Creates a replacement room with a `m.room.create` event containing a 2. {{< changed-in v="1.4" >}} Creates a replacement room with a `m.room.create` event containing a
`predecessor` field and the applicable `room_version`. `predecessor` field, the applicable `room_version`, and a `type` field
which is copied from the `predecessor` room. If no `type` is set on the
previous room, no `type` is specified on the new room's create event
either.
3. Replicates transferable state events to the new room. The exact 3. Replicates transferable state events to the new room. The exact
details for what is transferred is left as an implementation detail, details for what is transferred is left as an implementation detail,