diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-08-28 13:08:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-28 13:08:49 -0400 |
commit | 40901af5e096cb10ab69141875b071b4ea4ed1e0 (patch) | |
tree | ddc310741a9c98bda2435b848832f9e3be49bf35 /synapse/rest/client/room.py | |
parent | Combine logic about not overriding BUSY presence. (#16170) (diff) | |
download | synapse-40901af5e096cb10ab69141875b071b4ea4ed1e0.tar.xz |
Pass the device ID around in the presence handler (#16171)
Refactoring to pass the device ID (in addition to the user ID) through the presence handler (specifically the `user_syncing`, `set_state`, and `bump_presence_active_time` methods and their replication versions).
Diffstat (limited to 'synapse/rest/client/room.py')
-rw-r--r-- | synapse/rest/client/room.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/client/room.py b/synapse/rest/client/room.py index dc498001e4..553938ce9d 100644 --- a/synapse/rest/client/room.py +++ b/synapse/rest/client/room.py @@ -1229,7 +1229,9 @@ class RoomTypingRestServlet(RestServlet): content = parse_json_object_from_request(request) - await self.presence_handler.bump_presence_active_time(requester.user) + await self.presence_handler.bump_presence_active_time( + requester.user, requester.device_id + ) # Limit timeout to stop people from setting silly typing timeouts. timeout = min(content.get("timeout", 30000), 120000) |