The Matrix client object to use
Optional
actions?: IActionsObjectOptional
rule?: IAnnotatedPushRuleGet the user's push actions for the given event
Get one of the users push rules by its ID
The ID of the rule to search for
rule The push rule, or null if no such rule was found
Pre-caches the parsed keys for push rules and cleans out any obsolete cache entries. Should be called after push rules are updated.
The new push rules.
Static
actionConvert a list of actions into a object with the actions as keys and their values
The actions list
A object with key 'notify' (true or false) and an object of actions
Static
partsStatic
rewriteRewrites conditions on a client's push rules to match the defaults where applicable. Useful for upgrading push rules to more strict conditions when the server is falling behind on defaults.
The client's existing push rules
The Matrix ID of the client.
The rewritten rules
Construct a Push Processor.