From 3c68aa4342d37ffefc821a2f3c6b1f8e0d91f62b Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Tue, 20 Dec 2022 14:38:09 +0000 Subject: [PATCH] Use the multi-user path even for single users This is futureproofing: we'll be able to rip out the single-user path later --- synapse/handlers/device.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py index f18cc32bb1..ee866ce93a 100644 --- a/synapse/handlers/device.py +++ b/synapse/handlers/device.py @@ -947,9 +947,7 @@ class DeviceListWorkerUpdater: request: https://matrix.org/docs/spec/server_server/r0.1.2#get-matrix-federation-v1-user-devices-userid """ - # mark_failed_as_stale is not sent. Ensure this doesn't break expectations. - assert mark_failed_as_stale - return await self._user_device_resync_client(user_id=user_id) + return (await self.multi_user_device_resync([user_id]))[user_id] class DeviceListUpdater(DeviceListWorkerUpdater):