Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit f87bf7e

Browse files
authored
TO REVERT: add user_id to presence response in client worker (#57)
It's currently expected by the Tchap clients, a fix will be deployed to them later on.
1 parent cdc67df commit f87bf7e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/57.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add user_id back to presence in worker too https://github.com/matrix-org/synapse/commit/0bbbd10513008d30c17eb1d1e7ba1d091fb44ec7 .

synapse/app/generic_worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def __init__(self, hs):
156156

157157
async def on_GET(self, request, user_id):
158158
await self.auth.get_user_by_req(request)
159-
return 200, {"presence": "offline"}
159+
return 200, {"presence": "offline", "user_id": user_id}
160160

161161
async def on_PUT(self, request, user_id):
162162
await self.auth.get_user_by_req(request)

0 commit comments

Comments
 (0)