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

Commit

Permalink
Call the v2 identity service /3pid/unbind endpoint, rather than v1. (
Browse files Browse the repository at this point in the history
…#13240)

* Drop support for v1 unbind

Signed-off-by: Jacek Kusnierz <jacek.kusnierz@tum.de>

* Add changelog

Signed-off-by: Jacek Kusnierz <jacek.kusnierz@tum.de>

* Update changelog.d/13240.misc
  • Loading branch information
Vetchu authored Jul 13, 2022
1 parent ad5761b commit cc10715
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/13240.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Call the v2 identity service `/3pid/unbind` endpoint, rather than v1.
4 changes: 2 additions & 2 deletions synapse/handlers/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ async def try_unbind_threepid_with_id_server(
"id_server must be a valid hostname with optional port and path components",
)

url = "https://%s/_matrix/identity/api/v1/3pid/unbind" % (id_server,)
url_bytes = b"/_matrix/identity/api/v1/3pid/unbind"
url = "https://%s/_matrix/identity/v2/3pid/unbind" % (id_server,)
url_bytes = b"/_matrix/identity/v2/3pid/unbind"

content = {
"mxid": mxid,
Expand Down

0 comments on commit cc10715

Please sign in to comment.