aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-06-01 23:43:23 +0200
committerAlex Auvolat <alex@adnab.me>2021-06-01 23:43:23 +0200
commit7e2294933aa159e170ab8b090c58e3c3d97c765a (patch)
tree5ea47e8516d1e82d768d2df62faf5cd6b54c7517
parentadf163bad564b16c7caefbdfb9ccfb9abac9fa97 (diff)
downloadeasybridge-master.tar.gz
easybridge-master.zip
Add it to the correct placeHEADmaster
-rw-r--r--Dockerfile2
-rw-r--r--mxlib/api.go1
-rw-r--r--mxlib/client.go1
3 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index ff17e69..d82d7e5 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -3,7 +3,7 @@ RUN pacman -Sy python-pip --noconfirm; pacman -Scc --noconfirm; find /var/cache/
#FROM python:3.8.6-buster
-RUN pip install fbchat
+RUN pip install fbchat==1.9.7
RUN mkdir /app
WORKDIR /app
diff --git a/mxlib/api.go b/mxlib/api.go
index 9cd02d5..9b7cd36 100644
--- a/mxlib/api.go
+++ b/mxlib/api.go
@@ -41,6 +41,7 @@ type LoginResponse struct {
type RegisterRequest struct {
Auth RegisterRequestAuth `json:"auth"`
+ Type string `json:"type"`
Username string `json:"username"`
}
diff --git a/mxlib/client.go b/mxlib/client.go
index 689d3a0..4700333 100644
--- a/mxlib/client.go
+++ b/mxlib/client.go
@@ -147,6 +147,7 @@ func (mx *Client) RegisterUser(username string) error {
Auth: RegisterRequestAuth{
Type: "m.login.application_service",
},
+ Type: "m.login.application_service",
Username: username,
}
var rep RegisterResponse