required (resolution/fetch_state.rs)

tuwunel · src/matrix/room/state/resolution/fetch_state.rs · rust · Apache-2.0
auth

Module exposing: required

// Source: https://github.com/matrix-construct/tuwunel | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
use std::{collections::BTreeMap, future::ready};

use futures::{FutureExt, TryFutureExt};
use ruma::{
	UserId,
	events::{StateEventType, room::member::MembershipState},
};
use tuwunel_core::{Error, Result, err, result::NotFound};

use super::{
	StateMap,
	event_auth::auth_input_error,
	events::{
		JoinRule, RoomCreateEvent, RoomJoinRulesEvent, RoomMemberEvent, RoomPowerLevelsEvent,
		RoomThirdPartyInviteEvent, member::RoomMemberEventResultExt,
	},
};
use crate::{Event, PduEvent, StateKey, TypeStateKey};

/// Reads authorization state through a copyable handle.
///
/// Implementat

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key