have to set your own presence
This commit is contained in:
parent
f2aa285ad3
commit
b34a69740d
|
@ -140,6 +140,7 @@ class Appservice:
|
||||||
"PUT",
|
"PUT",
|
||||||
"/presence/" + user_id + "/status",
|
"/presence/" + user_id + "/status",
|
||||||
content={"presence":"online"},
|
content={"presence":"online"},
|
||||||
|
query_params={"user_id": user_id},
|
||||||
headers={"Content-Type": "application/json"},
|
headers={"Content-Type": "application/json"},
|
||||||
)
|
)
|
||||||
elif msg["action"] == "left":
|
elif msg["action"] == "left":
|
||||||
|
@ -148,6 +149,7 @@ class Appservice:
|
||||||
"PUT",
|
"PUT",
|
||||||
"/presence/" + user_id + "/status",
|
"/presence/" + user_id + "/status",
|
||||||
content={"presence":"offline"},
|
content={"presence":"offline"},
|
||||||
|
query_params={"user_id": user_id},
|
||||||
headers={"Content-Type": "application/json"},
|
headers={"Content-Type": "application/json"},
|
||||||
)
|
)
|
||||||
if "msg" in msg:
|
if "msg" in msg:
|
||||||
|
|
Loading…
Reference in New Issue