Explicitly match RoomVersionId::V11

This commit is contained in:
Val Lorentz 2023-12-24 19:04:48 +01:00
parent eb7ac91cd5
commit 8175bc1246
3 changed files with 10 additions and 5 deletions

View file

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