聊天室和群聊信息调整
This commit is contained in:
@@ -410,11 +410,12 @@ fun NavigationController(
|
||||
route = NavigationRoute.GroupChatInfo.route,
|
||||
arguments = listOf(navArgument("groupId") { type = NavType.StringType })
|
||||
) {
|
||||
val groupId = it.arguments?.getString("groupId") ?: ""
|
||||
val encodedId = it.arguments?.getString("groupId")
|
||||
val decodedId = encodedId?.let { java.net.URLDecoder.decode(it, "UTF-8") }
|
||||
CompositionLocalProvider(
|
||||
LocalAnimatedContentScope provides this,
|
||||
) {
|
||||
GroupChatInfoScreen(groupId)
|
||||
GroupChatInfoScreen(decodedId?:"")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -528,6 +529,15 @@ fun NavHostController.navigateToGroupChat(id: String,name:String,avatar:String)
|
||||
)
|
||||
}
|
||||
|
||||
fun NavHostController.navigateToGroupInfo(id: String) {
|
||||
val encodedId = java.net.URLEncoder.encode(id, "UTF-8")
|
||||
navigate(
|
||||
route = NavigationRoute.GroupChatInfo.route
|
||||
.replace("{groupId}", encodedId)
|
||||
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
|
||||
fun NavHostController.goTo(
|
||||
|
||||
Reference in New Issue
Block a user