summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre de Lacroix <pierre@pdelacroix.com>2021-04-24 20:48:32 +0200
committerPierre de Lacroix <pierre@pdelacroix.com>2021-04-24 20:48:32 +0200
commitb0a22bd4118647b0a4aab155820078b652384761 (patch)
tree08aeec7e09705bbc66c094051ebc73695f5069c0
parentfix missing application_service client parameter (diff)
add Client.join temporary wrapper
-rw-r--r--lib/matrix_app_service/client.ex1
-rw-r--r--lib/matrix_app_service/client_behaviour.ex1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/matrix_app_service/client.ex b/lib/matrix_app_service/client.ex
index 5353a3f..2e86c7e 100644
--- a/lib/matrix_app_service/client.ex
+++ b/lib/matrix_app_service/client.ex
@@ -125,4 +125,5 @@ defmodule MatrixAppService.Client do
defdelegate get_data(client, id, key), to: Polyjuice.Client.Account
defdelegate get_profile(client, id), to: Polyjuice.Client.Profile
defdelegate put_displayname(client, id, name), to: Polyjuice.Client.Profile
+ defdelegate join(client, room_id), to: Polyjuice.Client.Room
end
diff --git a/lib/matrix_app_service/client_behaviour.ex b/lib/matrix_app_service/client_behaviour.ex
index 8f3910b..7a1f7fe 100644
--- a/lib/matrix_app_service/client_behaviour.ex
+++ b/lib/matrix_app_service/client_behaviour.ex
@@ -31,4 +31,5 @@ defmodule MatrixAppService.ClientBehaviour do
@callback get_profile(Polyjuice.Client.LowLevel.t(), String.t()) :: {:ok, map()} | any
@callback get_data(Polyjuice.Client.LowLevel.t(), String.t(), String.t()) :: {:ok, map()} | any
@callback put_displayname(Polyjuice.Client.LowLevel.t(), String.t(), String.t()) :: :ok | any
+ @callback join(Polyjuice.Client.LowLevel.t(), String.t()) :: :ok | any
end