fix: don't check if user L2 is set unless user is logged in

This commit is contained in:
ggurdin 2025-11-07 10:05:02 -05:00
parent 0669282d1c
commit 7d7ba51123
No known key found for this signature in database
GPG key ID: A01CB41737CBB478
2 changed files with 9 additions and 9 deletions

View file

@ -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#

View file

@ -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"