Class: PushProcessor

pushprocessor~PushProcessor

new PushProcessor(client)

Construct a Push Processor.
Parameters:
Name Type Description
client Object The Matrix client object to use
Source:

Methods

(static) actionListToActionsObject(actionlist) → {object}

Convert 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' } }
Parameters:
Name Type Description
actionlist array The actions list
Source:
Returns:
A object with key 'notify' (true or false) and an object of actions
Type
object

actionsForEvent(ev) → {PushAction}

Get the user's push actions for the given event
Parameters:
Name Type Description
ev module:models/event.MatrixEvent
Source:
Returns:
Type
PushAction