chore: follow up of web sso fix
This commit is contained in:
parent
4428b1dd49
commit
e9c40c4188
3 changed files with 11 additions and 5 deletions
|
|
@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue