Skip to main content

visibility_filter

Function visibility_filter 

Source
async fn visibility_filter(
    services: &Services,
    item: PdusIterItem,
    user_id: &UserId,
) -> Option<PdusIterItem>
Expand description

Keeps a timeline item only when the user may see its event.

The room’s history visibility is read as it stood at that event rather than as it stands at the time of the request.