diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2020-08-28 15:59:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 15:59:28 +0100 |
commit | 22b926c284f98b5507583a3a7866da12a9f4bb47 (patch) | |
tree | 42ca82f4cd7cf9873a5203941ec7e297d3785299 /synapse/storage/databases | |
parent | Convert state and stream stores and related code to async (#8194) (diff) | |
download | synapse-22b926c284f98b5507583a3a7866da12a9f4bb47.tar.xz |
Only return devices with keys from `/federation/v1/user/devices/` (#8198)
There's not much point in returning all the others, and some people have a silly number of devices.
Diffstat (limited to 'synapse/storage/databases')
-rw-r--r-- | synapse/storage/databases/main/devices.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/synapse/storage/databases/main/devices.py b/synapse/storage/databases/main/devices.py index ecd3f3b310..def96637a2 100644 --- a/synapse/storage/databases/main/devices.py +++ b/synapse/storage/databases/main/devices.py @@ -498,9 +498,7 @@ class DeviceWorkerStore(SQLBaseStore): ) -> Tuple[int, List[JsonDict]]: now_stream_id = self._device_list_id_gen.get_current_token() - devices = self._get_e2e_device_keys_txn( - txn, [(user_id, None)], include_all_devices=True - ) + devices = self._get_e2e_device_keys_txn(txn, [(user_id, None)]) if devices: user_devices = devices[user_id] |