fix: don't check if user L2 is set unless user is logged in
This commit is contained in:
parent
0669282d1c
commit
7d7ba51123
2 changed files with 9 additions and 9 deletions
|
|
@ -385,14 +385,14 @@ class MatrixState extends State<Matrix> with WidgetsBindingObserver {
|
|||
}
|
||||
} else {
|
||||
// #Pangea
|
||||
final isL2Set = await pangeaController.userController.isUserL2Set;
|
||||
FluffyChatApp.router.go(
|
||||
state == LoginState.loggedIn
|
||||
? isL2Set
|
||||
? '/rooms'
|
||||
: '/registration/create'
|
||||
: '/home',
|
||||
);
|
||||
if (state == LoginState.loggedIn) {
|
||||
final isL2Set = await pangeaController.userController.isUserL2Set;
|
||||
FluffyChatApp.router.go(
|
||||
isL2Set ? '/rooms' : '/registration/create',
|
||||
);
|
||||
} else {
|
||||
FluffyChatApp.router.go('/home');
|
||||
}
|
||||
// FluffyChatApp.router
|
||||
// .go(state == LoginState.loggedIn ? '/rooms' : '/home');
|
||||
// Pangea#
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ description: Learn a language while texting your friends.
|
|||
# Pangea#
|
||||
publish_to: none
|
||||
# On version bump also increase the build number for F-Droid
|
||||
version: 4.1.15+3
|
||||
version: 4.1.15+4
|
||||
|
||||
environment:
|
||||
sdk: ">=3.0.0 <4.0.0"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue