From 1f764664c9c08bc42da36a9168f0e84bf707f744 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Tue, 11 Oct 2022 17:58:33 +0530 Subject: [PATCH] Expose homeserver from Registration object --- src/matrix/registration/Registration.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/matrix/registration/Registration.ts b/src/matrix/registration/Registration.ts index ded66719..e47bc2db 100644 --- a/src/matrix/registration/Registration.ts +++ b/src/matrix/registration/Registration.ts @@ -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]);