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

Commit b293291

Browse files
authored
Unbind using bind_new_user_emails_to_sydent if specified (#98)
1 parent a5575ea commit b293291

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

synapse/handlers/identity.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@ 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]
254256
else:
255257
id_servers = await self.store.get_id_servers_user_bound(
256258
user_id=mxid, medium=threepid["medium"], address=threepid["address"]

0 commit comments

Comments
 (0)