add admin command to redact an individual event from a local user

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-08-25 14:32:47 -04:00 committed by Jason Volk
parent 2b7e0dcb80
commit 8923c9a227
3 changed files with 74 additions and 6 deletions

View file

@ -113,7 +113,7 @@ impl Data {
self.eventid_pduid.get(event_id.as_bytes())
}
/// Returns the pdu.
/// Returns the pdu directly from `eventid_pduid` only.
pub(super) fn get_non_outlier_pdu(&self, event_id: &EventId) -> Result<Option<PduEvent>> {
self.eventid_pduid
.get(event_id.as_bytes())?