rename queryLogin to getLoginFlows

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-08-17 17:59:35 +05:30
parent d2c94b0d3e
commit 83f4095d88
2 changed files with 2 additions and 2 deletions

View file

@ -124,7 +124,7 @@ export class SessionContainer {
async queryLogin(homeServer) { async queryLogin(homeServer) {
const normalizedHS = normalizeHomeserver(homeServer); const normalizedHS = normalizeHomeserver(homeServer);
const hsApi = new HomeServerApi({homeServer: normalizedHS, request: this._platform.request}); 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); return this.parseLoginOptions(response, normalizedHS);
} }

View file

@ -134,7 +134,7 @@ export class HomeServerApi {
return this._get(`/rooms/${encodeURIComponent(roomId)}/state/${encodeURIComponent(eventType)}/${encodeURIComponent(stateKey)}`, {}, null, options); 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); return this._unauthedRequest("GET", this._url("/login"), null, null, null);
} }