summaryrefslogtreecommitdiff
path: root/lib/matrix_app_service/client.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/matrix_app_service/client.ex')
-rw-r--r--lib/matrix_app_service/client.ex9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/matrix_app_service/client.ex b/lib/matrix_app_service/client.ex
index 843b9f3..b1a73ca 100644
--- a/lib/matrix_app_service/client.ex
+++ b/lib/matrix_app_service/client.ex
@@ -3,14 +3,13 @@ defmodule MatrixAppService.Client do
base_url = Application.get_env(:matrix_app_service, :base_url)
access_token = Application.get_env(:matrix_app_service, :access_token)
- %Polyjuice.Client.LowLevel{
- base_url: base_url,
+ Polyjuice.Client.LowLevel.create(base_url, %{
access_token: access_token,
# "@alice:matrix.imago.local",
user_id: user_id,
- storage: storage,
- device_id: "Application service"
- }
+ device_id: "Application service",
+ storage: storage
+ })
end
def create_room(options) do