The Matrix client object to use
Private
Readonly
clientThe Matrix client object to use
Private
Readonly
parsedMaps the original key from the push rules to a list of property names after unescaping.
Static
Private
cachedGet the user's push actions for the given event
Private
createPrivate
eventPrivate
eventPrivate
eventPrivate
eventPrivate
eventPrivate
eventPrivate
matchingOptional
rulesets: IPushRulesPrivate
matchingPrivate
pushOptional
rulesets: IPushRulesPrivate
templatePre-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.
Private
valueFor a dotted field and event, fetch the value at that position, if one exists.
The value at the dotted path given by key.
The key of the push rule condition: a dotted field to fetch.
The matrix event to fetch the field from.
Static
actionConvert a list of actions into a object with the actions as keys and their values
eg. [ 'notify', { set_tweak: 'sound', value: 'default' } ]
becomes { notify: true, tweaks: { sound: 'default' } }
A object with key 'notify' (true or false) and an object of actions
The actions list
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 rewritten rules
The client's existing push rules
Generated using TypeDoc
Construct a Push Processor.