Use identity server v2 api instead of v1 (#9818)

See js-sdk change.
This commit is contained in:
Travis Ralston 2023-01-03 00:59:07 -07:00 committed by GitHub
parent 6ad70b0565
commit 6d6adc8c02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -50,7 +50,7 @@ async function checkIdentityServerUrl(u) {
// XXX: duplicated logic from js-sdk but it's quite tied up in the validation logic in the
// js-sdk so probably as easy to duplicate it than to separate it out so we can reuse it
try {
const response = await fetch(u + "/_matrix/identity/api/v1");
const response = await fetch(u + "/_matrix/identity/v2");
if (response.ok) {
return null;
} else if (response.status < 200 || response.status >= 300) {