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

Behaviour for a module that handles rooms reserved by the application service.

Link to this section Summary

Callbacks

Responds to a room query by alias. If the room exists, implementations should create the room (for instance by using MatrixAppService.Client.create_room/1) then return :ok. If the room doesn't exist, they should return anything else.

Link to this section Callbacks

@callback query_alias(String.t()) :: :ok | any()

Responds to a room query by alias. If the room exists, implementations should create the room (for instance by using MatrixAppService.Client.create_room/1) then return :ok. If the room doesn't exist, they should return anything else.