chore: follow up of web sso fix

This commit is contained in:
Christian Pauly 2021-06-18 16:15:11 +02:00
commit e9c40c4188
3 changed files with 11 additions and 5 deletions

View file

@ -330,8 +330,10 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
.contains(widget.router.currentState.url);
if (widget.router.currentState.url == '/' ||
(state == LoginState.logged) == isInLoginRoutes) {
widget.router.currentState
.push(loginState == LoginState.logged ? '/rooms' : '/home');
widget.router.currentState.push(
loginState == LoginState.logged ? '/rooms' : '/home',
queryParameters: widget.router.currentState.queryParameters,
);
}
}
});