From 83f4095d880ffd64cda24ecc07793c2a06fbef13 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 17 Aug 2021 17:59:35 +0530 Subject: [PATCH] rename queryLogin to getLoginFlows Signed-off-by: RMidhunSuresh --- src/matrix/SessionContainer.js | 2 +- src/matrix/net/HomeServerApi.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); }