fix: logout on temporary home screen now pops the back stack
This commit is contained in:
parent
f0a5446848
commit
da8463cf82
|
|
@ -60,7 +60,14 @@ fun HomeScreen(navController: NavController) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Button(
|
Button(
|
||||||
onClick = { RevoltAPI.logout(); navController.navigate("setup/greeting") },
|
onClick = {
|
||||||
|
RevoltAPI.logout()
|
||||||
|
navController.navigate("setup/greeting") {
|
||||||
|
popUpTo("chat/home") {
|
||||||
|
inclusive = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.fillMaxWidth()
|
.fillMaxWidth()
|
||||||
.padding(bottom = 30.dp, top = 5.dp, start = 20.dp, end = 20.dp)
|
.padding(bottom = 30.dp, top = 5.dp, start = 20.dp, end = 20.dp)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue