Skip to main contentModule room_member
Source use std::borrow::Borrow; ๐ use futures::future::join; ๐ use futures::future::join3; ๐ use ruma::AnyKeyName; ๐ use ruma::EventId; ๐ use ruma::SigningKeyId; ๐ use ruma::UserId; ๐ use ruma::events::room::member::MembershipState; ๐ use ruma::room_version_rules::AuthorizationRules; ๐ use ruma::serde::Base64; ๐ use ruma::serde::base64::Standard; ๐ use ruma::signatures::verify_canonical_json_bytes; ๐ use tuwunel_core::Err; ๐ use tuwunel_core::Result; ๐ use tuwunel_core::err; ๐ use crate::Event; ๐ use super::FetchState; ๐ use super::auth_input_error; ๐ use super::events::JoinRule; ๐ use super::events::RoomCreateEvent; ๐ use super::events::RoomMemberEvent; ๐ use super::events::RoomPowerLevelsIntField; ๐ use super::events::member::ThirdPartyInvite; ๐ use super::events::power_levels::RoomPowerLevelsEventOptionExt; ๐
- check_room_member ๐
- Check whether the given event passes the
m.room.member authorization
rules. - check_room_member_ban ๐
- Check whether the given event passes the
m.room.member authorization rules
with a membership of ban. - check_room_member_invite ๐
- Check whether the given event passes the
m.room.member authorization rules
with a membership of invite. - check_room_member_join ๐
- Check whether the given event passes the
m.room.member authorization rules
with a membership of join. - check_room_member_knock ๐
- Check whether the given event passes the
m.room.member authorization rules
with a membership of knock. - check_room_member_leave ๐
- Check whether the given event passes the
m.room.member authorization rules
with a membership of leave. - check_third_party_invite ๐
- Check whether the
third_party_invite from the m.room.member event passes
the authorization rules.