mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Don't mutate flows
This commit is contained in:
parent
30cb9f6d15
commit
e13040a49e
@ -29,7 +29,7 @@ export class Registration {
|
|||||||
constructor(hsApi: HomeServerApi, accountDetails: AccountDetails, flowSelector?: FlowSelector) {
|
constructor(hsApi: HomeServerApi, accountDetails: AccountDetails, flowSelector?: FlowSelector) {
|
||||||
this._hsApi = hsApi;
|
this._hsApi = hsApi;
|
||||||
this._accountDetails = accountDetails;
|
this._accountDetails = accountDetails;
|
||||||
this._flowSelector = flowSelector ?? (flows => flows.pop());
|
this._flowSelector = flowSelector ?? (flows => flows[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
async start(): Promise<BaseRegistrationStage> {
|
async start(): Promise<BaseRegistrationStage> {
|
||||||
|
Loading…
Reference in New Issue
Block a user