From 0934f1b3cc1d6bf4ecc1854e842a9f4393140291 Mon Sep 17 00:00:00 2001 From: multi prise Date: Mon, 14 Sep 2020 10:42:05 +0000 Subject: fixed helper function that creates a polyjuice client struct --- lib/matrix_app_service/client.ex | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3