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/receipts.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/receipts.py')
-rw-r--r-- | synapse/rest/client/receipts.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/client/receipts.py b/synapse/rest/client/receipts.py index 316e7b9982..869a374459 100644 --- a/synapse/rest/client/receipts.py +++ b/synapse/rest/client/receipts.py @@ -94,7 +94,9 @@ class ReceiptRestServlet(RestServlet): Codes.INVALID_PARAM, ) - await self.presence_handler.bump_presence_active_time(requester.user) + await self.presence_handler.bump_presence_active_time( + requester.user, requester.device_id + ) if receipt_type == ReceiptTypes.FULLY_READ: await self.read_marker_handler.received_client_read_marker( |