fix: Include sender in older room versions

This commit is contained in:
timedout
2026-05-24 16:44:18 +01:00
parent cc5349ee57
commit 5b8799e71f
3 changed files with 5 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
Fixed several bugs in the `POST /_matrix/client/v3/rooms/{roomId}/upgrade` endpoint. Contributed by @nex.
+1
View File
@@ -0,0 +1 @@
Added full support for [MSC4168: Update `m.space.*` state on room upgrade](https://github.com/matrix-org/matrix-spec-proposals/pull/4168). Contributed by @nex.
+3 -3
View File
@@ -308,13 +308,13 @@ pub(crate) async fn upgrade_room_route(
body.additional_creators.clone()
} else { Vec::new() },
creator: if new_version_rules.authorization.use_room_create_sender {
Some(sender_user.to_owned())
} else { None },
None
} else { Some(sender_user.to_owned()) },
predecessor: Some(assign!(PreviousRoom::new(body.room_id.clone()), {
event_id: last_event,
})),
room_version: body.new_version.clone(),
room_type: old_create_event.room_type.clone(),
room_version: body.new_version.clone(),
}
)
};