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 REGISTER = RouteIds.REGISTER
const val EDIT_PASSWORD = RouteIds.EDIT_PASSWORD const val EDIT_PASSWORD = RouteIds.EDIT_PASSWORD
const val TAG_OVERVIEW = RouteIds.TAG_OVERVIEW const val TAG_OVERVIEW = RouteIds.TAG_OVERVIEW
const val CHAT = RouteIds.CHAT
} }
object Param { object Param {
@@ -101,6 +102,17 @@ object UrlRoutes {
} }
), ),
rule(
match = { it is Route.Chat },
build = {
Built(
"/${Seg.CHAT}",
emptyMap()
)
},
parse = { _, _ -> Route.Chat() }
),
// "/search" // "/search"
rule( rule(
match = { it is Route.SearchVideos }, match = { it is Route.SearchVideos },
@@ -36,4 +36,4 @@ fun ChatScreen(component: ChatComponent, route: Route, onNavigate: (Route) -> Un
scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(), scrollBehavior = TopAppBarDefaults.pinnedScrollBehavior(),
content = { ChatContent(component, it, state) } content = { ChatContent(component, it, state) }
) )
} }
+1 -1
View File
@@ -9,7 +9,7 @@ desugar_jdk_libs = "2.1.5"
haze = "1.7.2" haze = "1.7.2"
java-jwt = "4.6.0" java-jwt = "4.6.0"
kotlin-version = "2.4.10" kotlin-version = "2.4.10"
agp = "9.3.0" agp = "9.3.1"
coroutines-extensions = "1.5.5" coroutines-extensions = "1.5.5"
decompose-version = "3.5.0" decompose-version = "3.5.0"