From 7d7ba5112336df42a00373c7c6e47dbdd79ec349 Mon Sep 17 00:00:00 2001 From: ggurdin Date: Fri, 7 Nov 2025 10:05:02 -0500 Subject: [PATCH] fix: don't check if user L2 is set unless user is logged in --- lib/widgets/matrix.dart | 16 ++++++++-------- pubspec.yaml | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/widgets/matrix.dart b/lib/widgets/matrix.dart index 4a1512833..678ee8991 100644 --- a/lib/widgets/matrix.dart +++ b/lib/widgets/matrix.dart @@ -385,14 +385,14 @@ class MatrixState extends State 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# diff --git a/pubspec.yaml b/pubspec.yaml index 3a069a75b..2e153701d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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"