Use the multi-user path even for single users

This is futureproofing: we'll be able to rip out the single-user path later
pull/14716/head
Olivier Wilkinson (reivilibre) 2022-12-20 14:38:09 +00:00
parent 369a97a714
commit 3c68aa4342
1 changed files with 1 additions and 3 deletions

View File

@ -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):