Return _type from getter

This commit is contained in:
RMidhunSuresh 2022-02-16 14:37:18 +05:30
parent a76bcd1739
commit 7a9298328f
2 changed files with 1 additions and 7 deletions

View file

@ -94,9 +94,7 @@ export class Registration {
this._sessionInfo = response; this._sessionInfo = response;
return undefined; return undefined;
case 401: case 401:
// Support unstable prefix for TokenAuth if (response.completed?.includes(currentStage.type)) {
const typeFromServer = (currentStage as TokenAuth).typeFromServer;
if (response.completed?.includes(typeFromServer ?? currentStage.type)) {
return currentStage.nextStage; return currentStage.nextStage;
} }
else { else {

View file

@ -43,10 +43,6 @@ export class TokenAuth extends BaseRegistrationStage {
} }
get type(): string { get type(): string {
return "m.login.registration_token";
}
get typeFromServer(): string {
return this._type; return this._type;
} }
} }