diff options
author | Erik Johnston <erik@matrix.org> | 2022-04-14 13:05:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-14 13:05:31 +0100 |
commit | 0b014eb25e8c0766d2552fae2ba366492dc16d4d (patch) | |
tree | 7bbad81d50705f6e87205feb0d412e1354dc1843 /synapse/storage/databases/main | |
parent | Reintroduce the lint targets in the linter script (#12455) (diff) | |
download | synapse-0b014eb25e8c0766d2552fae2ba366492dc16d4d.tar.xz |
Only send out device list updates for our own users (#12465)
Broke in #12365
Diffstat (limited to 'synapse/storage/databases/main')
-rw-r--r-- | synapse/storage/databases/main/devices.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/devices.py b/synapse/storage/databases/main/devices.py index 74e4e2122a..318e4df376 100644 --- a/synapse/storage/databases/main/devices.py +++ b/synapse/storage/databases/main/devices.py @@ -1703,7 +1703,9 @@ class DeviceStore(DeviceWorkerStore, DeviceBackgroundUpdateStore): next(stream_id_iterator), user_id, device_id, - False, + not self.hs.is_mine_id( + user_id + ), # We only need to send out update for *our* users now, encoded_context if whitelisted_homeserver(destination) else "{}", ) |