mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-02 14:12:22 -04:00
Consolidate the logic of delete_device/delete_devices. (#12970)
By always using delete_devices and sometimes passing a list with a single device ID. Previously these methods had gotten out of sync with each other and it seems there's little benefit to the single-device variant.
This commit is contained in:
parent
c51f5b9592
commit
9dc3293e0b
8 changed files with 12 additions and 48 deletions
|
@ -45,8 +45,8 @@ class LogoutRestServlet(RestServlet):
|
|||
access_token = self.auth.get_access_token_from_request(request)
|
||||
await self._auth_handler.delete_access_token(access_token)
|
||||
else:
|
||||
await self._device_handler.delete_device(
|
||||
requester.user.to_string(), requester.device_id
|
||||
await self._device_handler.delete_devices(
|
||||
requester.user.to_string(), [requester.device_id]
|
||||
)
|
||||
|
||||
return 200, {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue