Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit bf461ad

Browse files
committed
Fix deactivation
1 parent 1c77d90 commit bf461ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

synapse/handlers/identity.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,6 @@ async def try_unbind_threepid(self, mxid: str, threepid: dict) -> bool:
251251
"""
252252
if threepid.get("id_server"):
253253
id_servers = [threepid["id_server"]]
254-
elif self.hs.config.bind_new_user_emails_to_sydent:
255-
id_servers = [self.hs.config.bind_new_user_emails_to_sydent]
256254
else:
257255
id_servers = await self.store.get_id_servers_user_bound(
258256
user_id=mxid, medium=threepid["medium"], address=threepid["address"]
@@ -312,6 +310,9 @@ async def try_unbind_threepid_with_id_server(
312310
# the server we connect to.
313311
id_server_url = self.rewrite_id_server_url(id_server, add_https=True)
314312

313+
if self.hs.config.bind_new_user_emails_to_sydent:
314+
id_server_url = self.hs.config.bind_new_user_emails_to_sydent
315+
315316
url = "%s/_matrix/identity/api/v1/3pid/unbind" % (id_server_url,)
316317

317318
try:

0 commit comments

Comments
 (0)