fix(chat): route back navigation to history (#809)

This commit is contained in:
AlexDev_ authored and GitHub committed 2026-08-04 18:09:26 +03:00
1 parent d1dac57ccb
commit 5a15ccc524
3 files changed
+20

No files matched your search

@@ -58,6 +58,10 @@ object NavigationController {
*/
fun goBack(fallback: NavKey = ChatScreen) {
val stack = backStack ?: return
if (stack.lastOrNull() == ChatScreen) {
resetTo(HistoryScreen)
return
}
if (stack.size > 1) {
stack.removeLastOrNull()
} else if (stack.size == 1) {