Skip to main content

stripped_state

Function stripped_state 

Source
async fn stripped_state(
    services: &Services,
    sender_user: &UserId,
    room_id: &RoomId,
    membership: Option<&MembershipState>,
) -> StrippedRoomState
Expand description

The stripped state MSC4186 sends for an invited or knocked room.

For a knocked room this is the summary stored with the knock, ending with the user’s own knock event, so a client can present a room this server is not in. An empty knock summary is omitted, since a client reading the user’s membership from it would take the room for an invite.