summaryrefslogtreecommitdiff
path: root/src/api/client_server/redact.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/client_server/redact.rs')
-rw-r--r--src/api/client_server/redact.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/client_server/redact.rs b/src/api/client_server/redact.rs
index a29a561..20f7e91 100644
--- a/src/api/client_server/redact.rs
+++ b/src/api/client_server/redact.rs
@@ -3,7 +3,7 @@ use std::sync::Arc;
use crate::{service::pdu::PduBuilder, services, Result, Ruma};
use ruma::{
api::client::redact::redact_event,
- events::{room::redaction::RoomRedactionEventContent, RoomEventType},
+ events::{room::redaction::RoomRedactionEventContent, TimelineEventType},
};
use serde_json::value::to_raw_value;
@@ -32,7 +32,7 @@ pub async fn redact_event_route(
let event_id = services().rooms.timeline.build_and_append_pdu(
PduBuilder {
- event_type: RoomEventType::RoomRedaction,
+ event_type: TimelineEventType::RoomRedaction,
content: to_raw_value(&RoomRedactionEventContent {
reason: body.reason.clone(),
})