Unclear what filtering with empty arrays does #1312
Labels
A-Client-Server
Issues affecting the CS API
clarification
An area where the expected behaviour is understood, but the spec could do with being more explicit
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
ornot_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.
The text was updated successfully, but these errors were encountered: