yayan il y a 1 an
Parent
commit
fc31c3cc8d
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      app/src/main/java/io/nexilis/alpha/ui/main/Root.kt

+ 2 - 1
app/src/main/java/io/nexilis/alpha/ui/main/Root.kt

@@ -19,7 +19,8 @@ fun Root(navController: NavHostController = rememberNavController()) {
     val me by viewModel.me.observeAsState()
     var start = Graph.authentication
     me?.let {
-        if (!it.first_name.startsWith("USR")) {
+        val isAnonymous = it.first_name.startsWith("USR") && it.is_change_profile == "0"
+        if (!isAnonymous) {
             start = Graph.home
         }
     }