From 5fbc0362b51c9ea42f3a9feb1c8504bbd49942e7 Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Tue, 18 Aug 2020 11:22:30 +0100 Subject: [PATCH] Revert "Remove "user_id" from GET /presence. (#7606)" This reverts commit a3fbc23c39c0366392fd51faf0b1696f1f1d21c7. --- synapse/rest/client/v1/presence.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/synapse/rest/client/v1/presence.py b/synapse/rest/client/v1/presence.py index 970fdd5834ba..ceaa28c2128e 100644 --- a/synapse/rest/client/v1/presence.py +++ b/synapse/rest/client/v1/presence.py @@ -49,9 +49,7 @@ async def on_GET(self, request, user_id): raise AuthError(403, "You are not allowed to see their presence.") state = await self.presence_handler.get_state(target_user=user) - state = format_user_presence_state( - state, self.clock.time_msec(), include_user_id=False - ) + state = format_user_presence_state(state, self.clock.time_msec()) return 200, state