summary refs log tree commit diff
path: root/synapse/rest/client/logout.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/rest/client/logout.py')
-rw-r--r--synapse/rest/client/logout.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/logout.py b/synapse/rest/client/logout.py
index 193a6951b9..23dfa4518f 100644
--- a/synapse/rest/client/logout.py
+++ b/synapse/rest/client/logout.py
@@ -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, {}