Skip to main content

without_superseded_membership

Function without_superseded_membership 

Source
fn without_superseded_membership(
    state: Vec<Raw<AnyStrippedStateEvent>>,
    user_id: &UserId,
) -> Vec<Raw<AnyStrippedStateEvent>>
Expand description

Drops all but the last of the user’s member events from a knock summary.

A summary stored by an earlier version can carry the user’s superseded membership ahead of the knock, and a client reads the first one it finds.