summary refs log tree commit diff
path: root/synapse/handlers/device.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@element.io>2024-05-22 13:55:18 +0100
committerGitHub <noreply@github.com>2024-05-22 13:55:18 +0100
commitb71d2774388c90a68d71dd8d805556c8f62c92a1 (patch)
treefcc85d8ed6e18f6db16af4f3d50b9c8eca5f3ac2 /synapse/handlers/device.py
parentUpdate Lemonldap-NG OIDC config (#17204) (diff)
downloadsynapse-b71d2774388c90a68d71dd8d805556c8f62c92a1.tar.xz
Reduce work of calculating outbound device pokes (#17211)
Diffstat (limited to 'synapse/handlers/device.py')
-rw-r--r--synapse/handlers/device.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py
index 55842e7c7b..0432d97109 100644
--- a/synapse/handlers/device.py
+++ b/synapse/handlers/device.py
@@ -906,6 +906,13 @@ class DeviceHandler(DeviceWorkerHandler):
                         context=opentracing_context,
                     )
 
+                    await self.store.mark_redundant_device_lists_pokes(
+                        user_id=user_id,
+                        device_id=device_id,
+                        room_id=room_id,
+                        converted_upto_stream_id=stream_id,
+                    )
+
                     # Notify replication that we've updated the device list stream.
                     self.notifier.notify_replication()