summary refs log tree commit diff
path: root/synapse/handlers/device.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2023-01-28 17:54:37 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2023-01-28 17:54:48 +0100
commitbd5189c9f73319f566d342fc0a7fcaeaea18376f (patch)
tree0d7d21e96c9a5d2b0054d825642226a3e6b77e6a /synapse/handlers/device.py
parentIgnore remote device displaynames if MSC3480 enabled (diff)
downloadsynapse-github/anoa/msc3480.tar.xz
Hide device displaynames from other users github/anoa/msc3480 anoa/msc3480
Some argument finagling was needed as query_local_devices can be called
from requests of both local and remote users, and in the case of remote
users, without a user ID.

In the end, we have an option 'from_local_user_id' which tells
`query_local_devices` both a) whether the request is from a local or
remote user and b) if a local user, which one.
Diffstat (limited to 'synapse/handlers/device.py')
-rw-r--r--synapse/handlers/device.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py

index 5c06073901..563a17f888 100644 --- a/synapse/handlers/device.py +++ b/synapse/handlers/device.py
@@ -1086,7 +1086,7 @@ class DeviceListUpdater(DeviceListWorkerUpdater): @measure_func("_incoming_device_list_update") async def _handle_device_updates(self, user_id: str) -> None: - "Actually handle pending updates." + """Actually handle pending updates.""" async with self._remote_edu_linearizer.queue(user_id): pending_updates = self._pending_updates.pop(user_id, [])