Skip to main contentModule utils
Source use std::collections::BTreeMap; π use std::time::Duration; π use ruma::EventId; π use ruma::MilliSecondsSinceUnixEpoch; π use ruma::OwnedEventId; π use ruma::RoomId; π use ruma::TransactionId; π use ruma::UserId; π use ruma::api::client::filter::FilterDefinition; π use ruma::profile::ProfileFieldName; π use ruma::thirdparty::Medium; π use serde_json::Value as JsonValue; π use tokio::time::Instant; π use tuwunel_core::Err; π use tuwunel_core::Result; π use tuwunel_core::err; π use tuwunel_core::utils::string::str_from_bytes; π use tuwunel_core::utils::time::millis; π use tuwunel_core::warn; π use tuwunel_matrix::Event; π use tuwunel_service::Services; π use crate::Ruma; π
- bind_new_account_email π
- Bind a new accountβs canonical email address unless another account holds
it.
- check_email_domain π
- Rejects a canonical email address whose domain is forbidden for new bindings.
- invite_check π
- is_self_redaction π
- may_set_profile_field π
- Whether the caller may change a profile field under
profile.enable_set_displayname and profile.enable_set_avatar_url. - normalize_profile_fields π
- poll_deadline π
- When a long poll of
timeout milliseconds starting now gives up. - sender_is_guest π
- Whether the sender of a request is a guest.
- sync_deadline π
- When the long poll of a sync-like request gives up.
- txnid_event_id π
- Decodes the event ID a room transaction stored as its response.
- txnid_unsigned π
- The unsigned fields carrying a clientβs transaction ID on the event it sent.