From b34a69740ddb980b05630670c191b0de7c08c9e4 Mon Sep 17 00:00:00 2001 From: khr Date: Fri, 3 Apr 2020 08:38:49 +0200 Subject: [PATCH] have to set your own presence --- service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service.py b/service.py index 0754ff7..d7b5dd1 100644 --- a/service.py +++ b/service.py @@ -140,6 +140,7 @@ class Appservice: "PUT", "/presence/" + user_id + "/status", content={"presence":"online"}, + query_params={"user_id": user_id}, headers={"Content-Type": "application/json"}, ) elif msg["action"] == "left": @@ -148,6 +149,7 @@ class Appservice: "PUT", "/presence/" + user_id + "/status", content={"presence":"offline"}, + query_params={"user_id": user_id}, headers={"Content-Type": "application/json"}, ) if "msg" in msg: