Expose homeserver from Registration object

This commit is contained in:
RMidhunSuresh 2022-10-11 17:58:33 +05:30
parent 85a9a019c8
commit 1f764664c9
No known key found for this signature in database

View File

@ -35,8 +35,10 @@ export class Registration {
private readonly _accountDetails: AccountDetails;
private readonly _flowSelector: FlowSelector;
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._accountDetails = accountDetails;
this._flowSelector = flowSelector ?? (flows => flows[0]);