Skip to main contentModule delay_query
Source use std::time::Duration; ๐ use axum::extract::FromRequestParts; ๐ use axum::extract::State; ๐ use axum::response::IntoResponse; ๐ use axum::response::Response; ๐ use futures::FutureExt; ๐ use http::request::Parts; ๐ use ruma::api::client::delayed_events::delayed_message_event::unstable::Response as DelayedMessageResponse; ๐ use ruma::api::client::delayed_events::delayed_state_event::unstable::Response as DelayedStateResponse; ๐ use ruma::api::client::message::send_message_event; ๐ use ruma::api::client::state::send_state_event; ๐ use tuwunel_core::Error; ๐ use tuwunel_core::Result; ๐ use tuwunel_core::err; ๐ use url::form_urlencoded::parse as parse_query; ๐ use super::Kind; ๐ use super::Schedule; ๐ use super::schedule; ๐ use crate::Ruma; ๐ use crate::RumaResponse; ๐ use crate::send::send_message_event_route; ๐ use crate::state::send_state_event_for_key_route; ๐
- DelayQuery ๐
- The
org.matrix.msc4140.delay query parameter, in milliseconds.
- DELAY_PARAM ๐
- parse_delay ๐
- Reads the delay parameter from a raw query string.
- send_message_event_or_delayed_route ๐
PUT /_matrix/client/v3/rooms/{roomId}/send/{eventType}/{txnId}- send_state_event_or_delayed_route ๐
PUT /_matrix/client/v3/rooms/{roomId}/state/{eventType}/{stateKey}