diff options
author | multi prise <korokoko.toi@gmail.com> | 2020-09-14 10:42:05 +0000 |
---|---|---|
committer | Pierre de Lacroix <pierre@pdelacroix.com> | 2020-09-14 10:42:05 +0000 |
commit | 0934f1b3cc1d6bf4ecc1854e842a9f4393140291 (patch) | |
tree | 71288889acae16fc2ac92880fe0219c3268d820e /lib/matrix_app_service | |
parent | rename adapters (diff) |
fixed helper function that creates a polyjuice client struct
Diffstat (limited to 'lib/matrix_app_service')
-rw-r--r-- | lib/matrix_app_service/client.ex | 9 |
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 |