hive-matrix-mcp: add send_redact tool to delete matrix events
This commit is contained in:
parent
79af902d47
commit
1c0f7a72f7
4 changed files with 106 additions and 3 deletions
|
|
@ -99,6 +99,11 @@ async fn dispatch_op(op: DaemonOp, client: &Client) -> DaemonResponse {
|
|||
DaemonOp::MarkRead { room, event_id } => {
|
||||
handlers::mark_read(client, &room, &event_id).await
|
||||
}
|
||||
DaemonOp::SendRedact {
|
||||
room,
|
||||
event_id,
|
||||
reason,
|
||||
} => handlers::send_redact(client, &room, &event_id, reason.as_deref()).await,
|
||||
DaemonOp::ListRooms => handlers::list_rooms(client).await,
|
||||
DaemonOp::ListInvites => handlers::list_invites(client),
|
||||
DaemonOp::JoinRoom { room } => handlers::join_room(client, &room).await,
|
||||
|
|
|
|||
Loading…
Reference in a new issue