Skip to main contentModule join
Source use std::borrow::Borrow; π use std::collections::BTreeMap; π use std::collections::BTreeSet; π use std::collections::HashMap; π use std::collections::HashSet; π use std::iter::once; π use std::mem::take; π use std::sync::Arc; π use futures::FutureExt; π use futures::Stream; π use futures::StreamExt; π use futures::TryFutureExt; π use futures::TryStreamExt; π use futures::future::join; π use ruma::CanonicalJsonObject; π use ruma::CanonicalJsonValue; π use ruma::OwnedEventId; π use ruma::OwnedServerName; π use ruma::OwnedUserId; π use ruma::RoomId; π use ruma::RoomOrAliasId; π use ruma::RoomVersionId; π use ruma::UserId; π use ruma::api::error::ErrorKind; π use ruma::api::federation; π use ruma::canonical_json::to_canonical_value; π use ruma::events::StateEventType; π use ruma::events::room::create::RoomCreateEventContent; π use ruma::events::room::join_rules::RoomJoinRulesEventContent; π use ruma::events::room::member::MembershipState; π use ruma::events::room::member::RoomMemberEventContent; π use ruma::room::AllowRule; π use ruma::room::JoinRule; π use ruma::room_version_rules::RoomVersionRules; π use serde_json::value::RawValue as RawJsonValue; π use serde_json::value::to_raw_value; π use tuwunel_core::Err; π use tuwunel_core::Result; π use tuwunel_core::async_noinline; π use tuwunel_core::at; π use tuwunel_core::debug; π use tuwunel_core::debug; π use tuwunel_core::debug_error; π use tuwunel_core::debug_info; π use tuwunel_core::debug_warn; π use tuwunel_core::err; π use tuwunel_core::error; π use tuwunel_core::error; π use tuwunel_core::implement; π use tuwunel_core::info; π use tuwunel_core::info; π use tuwunel_core::trace; π use tuwunel_core::utils; π use tuwunel_core::utils::BoolExt; π use tuwunel_core::utils::IterStream; π use tuwunel_core::utils::ReadyExt; π use tuwunel_core::utils::json::serialized_len; π use tuwunel_core::utils::math::Expected; π use tuwunel_core::utils::shuffle; π use tuwunel_core::utils::stream::WidebandExt; π use tuwunel_core::warn; π use tuwunel_matrix::event::gen_event_id_canonical_json; π use tuwunel_matrix::pdu::Pdu; π use tuwunel_matrix::pdu::PduBuilder; π use tuwunel_matrix::pdu::check_rules; π use tuwunel_matrix::room::state::resolution as state_res; π use tuwunel_matrix::room_version; π use super::Service; π use super::VerifiedPdu; π use crate::Services; π use crate::federation::Candidates; π use crate::federation::WhenAllBackedOff; π use crate::profile::check_member_content; π use crate::rooms::state::IdMapState; π use crate::rooms::state::RoomMutexGuard; π use crate::rooms::state_compressor::CompressedState; π use crate::rooms::state_compressor::HashSetCompressStateEvent; π
- Join
- RESERVED_JOIN_KEYS π
- Keys a client may not set on
/join, because the server owns them.
- bound_string π
- get_servers_for_room π
- is_reserved_join_key
- Whether a clientβs
/join key is one the server owns. - merge_member_content π
- merge_restricted_signature π