forked from mystiq/hydrogen-web
Return _type from getter
This commit is contained in:
parent
a76bcd1739
commit
7a9298328f
2 changed files with 1 additions and 7 deletions
|
@ -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 {
|
||||
|
|
|
@ -43,10 +43,6 @@ export class TokenAuth extends BaseRegistrationStage {
|
|||
}
|
||||
|
||||
get type(): string {
|
||||
return "m.login.registration_token";
|
||||
}
|
||||
|
||||
get typeFromServer(): string {
|
||||
return this._type;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue