Skip to main contentModule report_event
Source use std::borrow::Cow; ๐ use axum::extract::State; ๐ use futures::StreamExt; ๐ use futures::TryFutureExt; ๐ use futures::pin_mut; ๐ use ruma::EventId; ๐ use ruma::RoomAliasId; ๐ use ruma::RoomId; ๐ use ruma::UserId; ๐ use ruma::api::client::room::report_content; ๐ use ruma::events::StateEventType; ๐ use ruma::events::room::create::RoomCreateEventContent; ๐ use ruma::events::room::message::RoomMessageEventContent; ๐ use ruma::room::RoomType; ๐ use serde::Deserialize; ๐ use serde::Deserialize; ๐ use tuwunel_core::Err; ๐ use tuwunel_core::Result; ๐ use tuwunel_core::debug_error; ๐ use tuwunel_core::debug_info; ๐ use tuwunel_core::info; ๐ use tuwunel_core::info; ๐ use tuwunel_core::utils::ReadyExt; ๐ use tuwunel_core::utils::html::escape; ๐ use tuwunel_core::utils::string::single_line; ๐ use tuwunel_matrix::Event; ๐ use tuwunel_matrix::pdu::PduEvent; ๐ use tuwunel_service::Services; ๐ use super::REASON_MAX_LEN; ๐ use crate::ClientIp; ๐ use crate::Ruma; ๐
- Content ๐
- Report ๐
- DETAIL_MAX_CHARS ๐
- excerpt ๐
- format_report ๐
- is_event_report_valid ๐
- in the following order:
- report_event_route ๐
POST /_matrix/client/v3/rooms/{roomId}/report/{eventId}