Skip to content

Unclear what filtering with empty arrays does #1312

@clokep

Description

@clokep

Link to problem area: https://spec.matrix.org/v1.4/client-server-api/#_matrixclientv3useruseridfilter_eventfilter

Issue

It is unclear what providing an empty array for e.g. types or not_types would do. Is that treated as not providing the field (empirically this is what happens)?

According to tulir the proper way to filter out all event types is: {"not_types": ["*"]}

See https://matrix.to/#/!NasysSDfxKxZBzJJoE:matrix.org/$q-MFBajP8Lvnxs7r1u_AyfGtUf7spu86BUVFuhqTHXM?via=matrix.org&via=libera.chat&via=element.io.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-Client-ServerIssues affecting the CS APIclarificationAn area where the expected behaviour is understood, but the spec could do with being more explicit

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions