Optional
userId: null | stringPrivate
filterOptional
Readonly
userPrivate
arrayChecks with the filter component matches the given event
true if the event matches the filter
event to be checked against the filter
Private
checkChecks whether the filter component matches the given event fields.
true if the event fields match the filter
the roomId for the event being checked
the sender of the event being checked
the type of the event being checked
whether the event contains a content.url field
whether has aggregated relation of the given type
whether one of the relation is sent by the user listed
Filters a list of events down to those which match this filter component
events which matched the filter component
Events to be checked against the filter component
Generated using TypeDoc
FilterComponent is a section of a Filter definition which defines the types, rooms, senders filters etc to be applied to a particular type of resource. This is all ported over from synapse's Filter object.
N.B. that synapse refers to these as 'Filters', and what js-sdk refers to as 'Filters' are referred to as 'FilterCollections'.