mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-27 18:28:31 +00:00
feat(space-upgrades): MSC4168: Override space child vias
This commit is contained in:
parent
b2b18002ea
commit
331832616f
1 changed files with 6 additions and 1 deletions
|
@ -366,7 +366,12 @@ pub(crate) async fn upgrade_room_route(
|
||||||
.build_and_append_pdu(
|
.build_and_append_pdu(
|
||||||
PduBuilder {
|
PduBuilder {
|
||||||
event_type: StateEventType::SpaceChild.into(),
|
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()),
|
state_key: Some(replacement_room.as_str().into()),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue