diff --git a/src/matrix/registration/Registration.ts b/src/matrix/registration/Registration.ts index d0f11a1c..e9c0b512 100644 --- a/src/matrix/registration/Registration.ts +++ b/src/matrix/registration/Registration.ts @@ -40,18 +40,13 @@ export class Registration { this._data = data; } - private async _fetchFlows(): Promise { + async start(): Promise { const response = await this._hsApi.register( this._username, this._password, this._initialDeviceDisplayName, undefined, this._inhibitLogin).response(); - return response; - } - - async start(): Promise { - const response = await this._fetchFlows(); this.parseStagesFromResponse(response); return this._firstStage; }