Call the v2 identity service /3pid/unbind endpoint, rather than v1. (#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
This commit is contained in:
Jacek Kuśnierz 2022-07-13 20:43:17 +02:00 committed by GitHub
parent ad5761b65c
commit cc1071598a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

1
changelog.d/13240.misc Normal file
View File

@ -0,0 +1 @@
Call the v2 identity service `/3pid/unbind` endpoint, rather than v1.

View File

@ -281,8 +281,8 @@ class IdentityHandler:
"id_server must be a valid hostname with optional port and path components", "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 = "https://%s/_matrix/identity/v2/3pid/unbind" % (id_server,)
url_bytes = b"/_matrix/identity/api/v1/3pid/unbind" url_bytes = b"/_matrix/identity/v2/3pid/unbind"
content = { content = {
"mxid": mxid, "mxid": mxid,