From b3f791ec3b7c321eabd34aeaa1d5dddc238f94ea Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Thu, 9 Feb 2023 21:26:21 +0000 Subject: Rename delete_threepid -> delete_and_unbind_threepid To make it more obvious that this method will also attempt to unbind threepids that are deleted through it. --- synapse/handlers/auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'synapse/handlers/auth.py') diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index e6f9e5f878..8da017c3ba 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -1595,7 +1595,7 @@ class AuthHandler: # has successfully been created. await self._third_party_rules.on_threepid_bind(user_id, medium, address) - async def delete_threepid( + async def delete_and_unbind_threepid( self, user_id: str, medium: str, address: str, id_server: Optional[str] = None ) -> bool: """Attempts to unbind the 3pid on the identity servers and deletes it -- cgit 1.5.1