Skip to main content

Module room_member

Module room_member 

Source

Re-exportsยง

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; ๐Ÿ”’

Functionsยง

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.