add chat rule

This commit is contained in:
2026-08-06 20:59:08 +03:00
parent dd657f83d0
commit 7cc21d101a
3 changed files with 14 additions and 2 deletions
@@ -27,6 +27,7 @@ object UrlRoutes {
const val REGISTER = RouteIds.REGISTER
const val EDIT_PASSWORD = RouteIds.EDIT_PASSWORD
const val TAG_OVERVIEW = RouteIds.TAG_OVERVIEW
const val CHAT = RouteIds.CHAT
}
object Param {
@@ -101,6 +102,17 @@ object UrlRoutes {
}
),
rule(
match = { it is Route.Chat },
build = {
Built(
"/${Seg.CHAT}",
emptyMap()
)
},
parse = { _, _ -> Route.Chat() }
),
// "/search"
rule(
match = { it is Route.SearchVideos },
@@ -36,4 +36,4 @@ fun ChatScreen(component: ChatComponent, route: Route, onNavigate: (Route) -> Un
scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(),
content = { ChatContent(component, it, state) }
)
}
}