diff --git a/changelog.d/6067.feature b/changelog.d/6067.feature new file mode 100644 index 000000000000..72685961c964 --- /dev/null +++ b/changelog.d/6067.feature @@ -0,0 +1 @@ +Remove `bind` parameter from Client Server POST `/account` endpoint as per [MSC2290](https://github.com/matrix-org/matrix-doc/pull/2290/). \ No newline at end of file diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py index c9815810d081..ed77c92dcff7 100644 --- a/synapse/rest/client/v2_alpha/account.py +++ b/synapse/rest/client/v2_alpha/account.py @@ -573,10 +573,6 @@ def on_POST(self, request): user_id, threepid["medium"], threepid["address"], threepid["validated_at"] ) - if not requester.app_service and ("bind" in body and body["bind"]): - logger.debug("Binding threepid %s to %s", threepid, user_id) - yield self.identity_handler.bind_threepid(threepid_creds, user_id) - if self.hs.config.shadow_server: shadow_user = UserID( requester.user.localpart, self.hs.config.shadow_server.get("hs")