Show Matrix specs supported by the homeserver

Change-Id: I01c110fb4b3de4de49b34f290c91c8bf424521fe
This commit is contained in:
Manuel Stahl
2024-04-17 11:25:17 +02:00
parent 25020c2d5b
commit c9cb9aa9e0
4 changed files with 39 additions and 12 deletions

View File

@@ -36,6 +36,13 @@ export const getServerVersion = async baseUrl => {
return response.json.server_version;
};
/** Get supported Matrix features */
export const getSupportedFeatures = async baseUrl => {
const versionUrl = `${baseUrl}/_matrix/client/versions`;
const response = await fetchUtils.fetchJson(versionUrl, { method: "GET" });
return response.json;
};
/**
* Get supported login flows
* @param baseUrl the base URL of the homeserver