defmodule MatrixAppService.Adapter.Room do @moduledoc """ Behaviour for a module that handles rooms that the application service has reserved. """ @doc """ 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. """ @callback query_alias(String.t()) :: :ok | Any end