Expand description
Evaluates user visibility and event-authoring permissions.
Historical visibility checks combine event-time state with retained membership metadata. Invite and tombstone checks use the normal event-build pipeline as non-persisting authorization probes.
Re-exportsยง
use futures::TryFutureExt;๐use ruma::EventId;๐use ruma::RoomId;๐use ruma::UserId;๐use ruma::events::StateEventType;๐use ruma::events::TimelineEventType;๐use ruma::events::room::history_visibility::HistoryVisibility;๐use ruma::events::room::history_visibility::RoomHistoryVisibilityEventContent;๐use ruma::events::room::member::MembershipState;๐use ruma::events::room::member::RoomMemberEventContent;๐use ruma::events::room::tombstone::RoomTombstoneEventContent;๐use tuwunel_core::Err;๐use tuwunel_core::Result;๐use tuwunel_core::err;๐use tuwunel_core::implement;๐use tuwunel_core::utils::BoolExt;๐use tuwunel_core::utils::FutureBoolExt;๐use tuwunel_core::utils::OptionExt;๐use tuwunel_core::utils::future::TryExtExt;๐use tuwunel_core::utils::result::NotFound;๐use tuwunel_matrix::Event;๐use tuwunel_matrix::PduCount;๐use tuwunel_matrix::StateKey;๐use tuwunel_matrix::pdu::PduBuilder;๐use crate::rooms::short::ShortStateHash;๐use crate::rooms::state::RoomMutexGuard;๐