Explicitly match RoomVersionId::V11

This commit is contained in:
Val Lorentz 2023-12-24 19:04:48 +01:00 committed by June
parent f3045be622
commit 33cae7eaab
3 changed files with 10 additions and 5 deletions

View file

@ -1399,7 +1399,8 @@ impl Service {
| RoomVersionId::V8
| RoomVersionId::V9
| RoomVersionId::V10 => RoomCreateEventContent::new_v1(conduit_user.clone()),
_ => RoomCreateEventContent::new_v11(),
RoomVersionId::V11 => RoomCreateEventContent::new_v11(),
_ => panic!("Unexpected room version {}", room_version),
};
content.federate = true;

View file

@ -423,7 +423,7 @@ impl Service {
self.redact_pdu(redact_id, pdu)?;
}
}
_ => {
RoomVersionId::V11 => {
#[derive(Deserialize)]
struct Redaction {
redacts: Option<OwnedEventId>,
@ -437,6 +437,7 @@ impl Service {
self.redact_pdu(redact_id, pdu)?;
}
}
_ => panic!("Unexpected room version {}", room_version_id)
};
}
TimelineEventType::SpaceChild => {