fix: logout on temporary home screen now pops the back stack

This commit is contained in:
Infi 2022-12-11 00:11:27 +01:00
parent f0a5446848
commit da8463cf82
1 changed files with 8 additions and 1 deletions

View File

@ -60,7 +60,14 @@ fun HomeScreen(navController: NavController) {
}
}
Button(
onClick = { RevoltAPI.logout(); navController.navigate("setup/greeting") },
onClick = {
RevoltAPI.logout()
navController.navigate("setup/greeting") {
popUpTo("chat/home") {
inclusive = true
}
}
},
modifier = Modifier
.fillMaxWidth()
.padding(bottom = 30.dp, top = 5.dp, start = 20.dp, end = 20.dp)