add admin command to redact an individual event from a local user
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
2b7e0dcb80
commit
8923c9a227
3 changed files with 74 additions and 6 deletions
|
@ -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())?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue