MatrixAppService.Adapter.Room behaviour (MatrixAppService v0.1.0) View Source
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
Specs
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.