View Source MatrixAppService.Adapter.Transaction behaviour (MatrixAppService v0.3.1)

Behaviour for a module that handles transactions involving registered users and rooms.

Link to this section Summary

Callbacks

Called when the application service receives an event.

Link to this section Callbacks

Link to this callback

new_event(%MatrixAppService.Event{})

View Source
@callback new_event(%MatrixAppService.Event{
  age: term(),
  content: term(),
  event_id: term(),
  id: term(),
  origin_server_ts: term(),
  redacts: term(),
  room_id: term(),
  sender: term(),
  state_key: term(),
  type: term(),
  unsigned: term(),
  user_id: term()
}) :: any()

Called when the application service receives an event.