1
0

Fix deactivation

This commit is contained in:
Mathieu Velten
2021-08-18 11:58:44 +02:00
parent 1c77d90c1f
commit bf461ad7b4

View File

@@ -251,8 +251,6 @@ class IdentityHandler(BaseHandler):
"""
if threepid.get("id_server"):
id_servers = [threepid["id_server"]]
elif self.hs.config.bind_new_user_emails_to_sydent:
id_servers = [self.hs.config.bind_new_user_emails_to_sydent]
else:
id_servers = await self.store.get_id_servers_user_bound(
user_id=mxid, medium=threepid["medium"], address=threepid["address"]
@@ -312,6 +310,9 @@ class IdentityHandler(BaseHandler):
# the server we connect to.
id_server_url = self.rewrite_id_server_url(id_server, add_https=True)
if self.hs.config.bind_new_user_emails_to_sydent:
id_server_url = self.hs.config.bind_new_user_emails_to_sydent
url = "%s/_matrix/identity/api/v1/3pid/unbind" % (id_server_url,)
try: