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 authored and Jason Volk committed 2024-08-29 19:19:20 +00:00
1 parent 2b7e0dcb80
commit 8923c9a227
3 files changed
+74 -6

No files matched your search

+9 -1
View File
@@ -2,7 +2,7 @@ mod commands;
use clap::Subcommand;
use conduit::Result;
use ruma::{OwnedRoomOrAliasId, RoomId};
use ruma::{EventId, OwnedRoomOrAliasId, RoomId};
use crate::admin_command_dispatch;
@@ -103,4 +103,12 @@ pub(super) enum UserCommand {
user_id: String,
room_id: Box<RoomId>,
},
/// - Attempts to forcefully redact the specified event ID from the sender
/// user
///
/// This is only valid for local users
RedactEvent {
event_id: Box<EventId>,
},
}