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;
return undefined;
case 401:
// Support unstable prefix for TokenAuth
const typeFromServer = (currentStage as TokenAuth).typeFromServer;
if (response.completed?.includes(typeFromServer ?? currentStage.type)) {
if (response.completed?.includes(currentStage.type)) {
return currentStage.nextStage;
}
else {

View File

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