View Source MatrixAppService.Adapter.User 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 user query by Matrix ID. If the user exists, implementations should create the user (for instance by using MatrixAppService.Client.register/2) then return :ok. If the user doesn't exist, they should return anything else.

Link to this section Callbacks

@callback query_user(String.t()) :: :ok | Any

Responds to a user query by Matrix ID. If the user exists, implementations should create the user (for instance by using MatrixAppService.Client.register/2) then return :ok. If the user doesn't exist, they should return anything else.