diff --git a/src/matrix/SessionContainer.js b/src/matrix/SessionContainer.js index 3aaa782b..edbe0f28 100644 --- a/src/matrix/SessionContainer.js +++ b/src/matrix/SessionContainer.js @@ -124,7 +124,7 @@ export class SessionContainer { async queryLogin(homeServer) { const normalizedHS = normalizeHomeserver(homeServer); const hsApi = new HomeServerApi({homeServer: normalizedHS, request: this._platform.request}); - const response = await hsApi.queryLogin().response(); + const response = await hsApi.getLoginFlows().response(); return this.parseLoginOptions(response, normalizedHS); } diff --git a/src/matrix/net/HomeServerApi.js b/src/matrix/net/HomeServerApi.js index 13baf00c..8641e374 100644 --- a/src/matrix/net/HomeServerApi.js +++ b/src/matrix/net/HomeServerApi.js @@ -134,7 +134,7 @@ export class HomeServerApi { return this._get(`/rooms/${encodeURIComponent(roomId)}/state/${encodeURIComponent(eventType)}/${encodeURIComponent(stateKey)}`, {}, null, options); } - queryLogin() { + getLoginFlows() { return this._unauthedRequest("GET", this._url("/login"), null, null, null); }