1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-27 10:18:30 +00:00

feat(space-upgrades): MSC4168: Override space child vias

This commit is contained in:
nexy7574 2025-07-19 15:51:03 +01:00 committed by Jade Ellis
parent b2b18002ea
commit 331832616f
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -366,7 +366,12 @@ pub(crate) async fn upgrade_room_route(
.build_and_append_pdu(
PduBuilder {
event_type: StateEventType::SpaceChild.into(),
content: to_raw_value(&child).expect("event is valid, we just created it"),
content: to_raw_value(&SpaceChildEventContent {
via: vec![sender_user.server_name().to_owned()],
order: child.order,
suggested: child.suggested,
})
.expect("event is valid, we just created it"),
state_key: Some(replacement_room.as_str().into()),
..Default::default()
},