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;
|
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 {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue