Merge pull request #4685 from matrix-org/t3chguy/sso-query

Fix login loop where the sso flow returns to `#/login`
This commit is contained in:
Michael Telatynski
2020-06-03 20:28:01 +01:00
committed by GitHub
4 changed files with 30 additions and 17 deletions

View File

@@ -1924,7 +1924,10 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
// console.log(`Rendering MatrixChat with view ${this.state.view}`);
let fragmentAfterLogin = "";
if (this.props.initialScreenAfterLogin) {
if (this.props.initialScreenAfterLogin &&
// XXX: workaround for https://github.com/vector-im/riot-web/issues/11643 causing a login-loop
!["welcome", "login", "register"].includes(this.props.initialScreenAfterLogin.screen)
) {
fragmentAfterLogin = `/${this.props.initialScreenAfterLogin.screen}`;
}