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

Commit cc10715

Browse files
authored
Call the v2 identity service /3pid/unbind endpoint, rather than v1. (#13240)
* Drop support for v1 unbind Signed-off-by: Jacek Kusnierz <[email protected]> * Add changelog Signed-off-by: Jacek Kusnierz <[email protected]> * Update changelog.d/13240.misc
1 parent ad5761b commit cc10715

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.d/13240.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Call the v2 identity service `/3pid/unbind` endpoint, rather than v1.

synapse/handlers/identity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ async def try_unbind_threepid_with_id_server(
281281
"id_server must be a valid hostname with optional port and path components",
282282
)
283283

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

287287
content = {
288288
"mxid": mxid,

0 commit comments

Comments
 (0)