summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-04-26 17:07:21 +0100
committerGitHub <noreply@github.com>2022-04-26 17:07:21 +0100
commitf59e3f4c900b3961e2b96592a67cd2f0821b00db (patch)
tree06407ee7ebadca9d531a01085c3696a95182f2db /synapse/storage
parentComment out dodgy log-kv (#12554) (diff)
downloadsynapse-f59e3f4c900b3961e2b96592a67cd2f0821b00db.tar.xz
Mark remote device list updates as already handled (#12557)
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/databases/main/devices.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/devices.py b/synapse/storage/databases/main/devices.py
index 59d223a900..483dd80406 100644
--- a/synapse/storage/databases/main/devices.py
+++ b/synapse/storage/databases/main/devices.py
@@ -1748,7 +1748,8 @@ class DeviceStore(DeviceWorkerStore, DeviceBackgroundUpdateStore):
                     device_id,
                     room_id,
                     stream_id,
-                    False,
+                    # We only need to calculate outbound pokes for local users
+                    not self.hs.is_mine_id(user_id),
                     encoded_context,
                 )
                 for room_id in room_ids