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

Call the v2 identity service /3pid/unbind endpoint, rather than v1. #13240

Merged
merged 4 commits into from
Jul 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -300,8 +300,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