Skip to main content
Module power_sort
tuwunel_
service
1.6.2
Module power_
sort
Module Items
Functions
In tuwunel_
service::
rooms::
state_
res::
resolve
tuwunel_service
::
rooms
::
state_res
::
resolve
Module
power_
sort
Copy item path
Source
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.
is_
power_
event_
id
๐
Whether the given event ID belongs to a power event.
power_
level_
for_
sender
๐
Find the power level for the sender of the event of the given event ID or return a default value of zero.
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.