diff options
Diffstat (limited to 'synapse/rest/admin/users.py')
-rw-r--r-- | synapse/rest/admin/users.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/synapse/rest/admin/users.py b/synapse/rest/admin/users.py index 9276a81d9f..9e33012ae3 100644 --- a/synapse/rest/admin/users.py +++ b/synapse/rest/admin/users.py @@ -304,8 +304,13 @@ class UserRestServletV2(RestServlet): # remove old threepids for medium, address in del_threepids: try: - await self.auth_handler.delete_and_unbind_threepid( - user_id, medium, address, None + await self.hs.get_identity_handler().try_unbind_threepid( + user_id, + {"medium": medium, "address": address, "id_server": None}, + ) + + await self.auth_handler.delete_local_threepid( + user_id, medium, address ) except Exception: logger.exception("Failed to remove threepids") |