mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
REFACTOR: Inline method
This commit is contained in:
parent
a91ba4370d
commit
2d4c106542
@ -40,18 +40,13 @@ export class Registration {
|
|||||||
this._data = data;
|
this._data = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async _fetchFlows(): Promise<RegistrationResponse> {
|
async start(): Promise<BaseRegistrationStage> {
|
||||||
const response = await this._hsApi.register(
|
const response = await this._hsApi.register(
|
||||||
this._username,
|
this._username,
|
||||||
this._password,
|
this._password,
|
||||||
this._initialDeviceDisplayName,
|
this._initialDeviceDisplayName,
|
||||||
undefined,
|
undefined,
|
||||||
this._inhibitLogin).response();
|
this._inhibitLogin).response();
|
||||||
return response;
|
|
||||||
}
|
|
||||||
|
|
||||||
async start(): Promise<BaseRegistrationStage> {
|
|
||||||
const response = await this._fetchFlows();
|
|
||||||
this.parseStagesFromResponse(response);
|
this.parseStagesFromResponse(response);
|
||||||
return this._firstStage;
|
return this._firstStage;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user