Re-exportsยง
use std::collections::HashMap;๐use std::iter::once;๐use futures::StreamExt;๐use futures::TryFutureExt;๐use futures::TryStreamExt;๐use futures::stream::FuturesUnordered;๐use ruma::EventId;๐use ruma::OwnedEventId;๐use ruma::events::TimelineEventType;๐use ruma::events::room::power_levels::UserPowerLevel;๐use ruma::room_version_rules::RoomVersionRules;๐use serde::Deserialize;๐use serde::Deserialize;๐use tuwunel_core::Result;๐use tuwunel_core::err;๐use tuwunel_core::result::NotFound;๐use tuwunel_core::utils::stream::IterStream;๐use tuwunel_core::utils::stream::TryBroadbandExt;๐use tuwunel_core::utils::stream::TryReadyExt;๐use super::super::FetchEvent;๐use super::super::events::PowerEvent;๐use super::super::events::RoomCreateEvent;๐use super::super::events::RoomPowerLevelsEvent;๐use super::super::events::RoomPowerLevelsIntField;๐use super::super::events::power_levels::RoomPowerLevelsEventOptionExt;๐use super::super::fetch_event::AuthRefs;๐use super::super::topological_sort;๐use super::super::topological_sort;๐use super::super::topological_sort::ReferencedIds;๐use super::ConflictedSet;๐use crate::Event;๐use crate::PduEvent;๐
Functionsยง
- add_
event_ ๐auth_ chain - Add the event with the given event ID and all the events in its auth chain that are in the full conflicted set to the graph.
- fetch_
optional_ ๐event - is_
power_ ๐event_ id - Whether the given event ID belongs to a power event.
- power_
level_ ๐for_ sender - Finds the power level for an event sender.
- power_
sort ๐ - Enlarge the given list of conflicted power events by adding the events in their auth chain that are in the full conflicted set, and sort it using reverse topological power ordering.