mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Expose homeserver from Registration object
This commit is contained in:
parent
85a9a019c8
commit
1f764664c9
@ -35,8 +35,10 @@ export class Registration {
|
|||||||
private readonly _accountDetails: AccountDetails;
|
private readonly _accountDetails: AccountDetails;
|
||||||
private readonly _flowSelector: FlowSelector;
|
private readonly _flowSelector: FlowSelector;
|
||||||
private _sessionInfo?: RegistrationResponseSuccess
|
private _sessionInfo?: RegistrationResponseSuccess
|
||||||
|
public readonly homeserver: string;
|
||||||
|
|
||||||
constructor(hsApi: HomeServerApi, accountDetails: AccountDetails, flowSelector?: FlowSelector) {
|
constructor(homeserver: string, hsApi: HomeServerApi, accountDetails: AccountDetails, flowSelector?: FlowSelector) {
|
||||||
|
this.homeserver = homeserver;
|
||||||
this._hsApi = hsApi;
|
this._hsApi = hsApi;
|
||||||
this._accountDetails = accountDetails;
|
this._accountDetails = accountDetails;
|
||||||
this._flowSelector = flowSelector ?? (flows => flows[0]);
|
this._flowSelector = flowSelector ?? (flows => flows[0]);
|
||||||
|
Loading…
Reference in New Issue
Block a user