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

Commit

Permalink
Revert "Remove "user_id" from GET /presence. (#7606)"
Browse files Browse the repository at this point in the history
This reverts commit a3fbc23.
  • Loading branch information
babolivier committed Aug 18, 2020
1 parent b90ecbe commit 5fbc036
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions synapse/rest/client/v1/presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5fbc036

Please sign in to comment.