群聊头像支持点击跳转到群信息页面
This commit is contained in:
@@ -187,7 +187,10 @@ fun GroupChatScreen(groupId: String,name: String,avatar: String,) {
|
|||||||
imageUrl = viewModel.groupAvatar,
|
imageUrl = viewModel.groupAvatar,
|
||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.size(32.dp)
|
.size(32.dp)
|
||||||
.clip(RoundedCornerShape(8.dp)),
|
.clip(RoundedCornerShape(8.dp))
|
||||||
|
.noRippleClickable {
|
||||||
|
navController.navigateToGroupInfo(groupId)
|
||||||
|
},
|
||||||
contentDescription = "群聊头像"
|
contentDescription = "群聊头像"
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
@@ -195,7 +198,10 @@ fun GroupChatScreen(groupId: String,name: String,avatar: String,) {
|
|||||||
modifier = Modifier
|
modifier = Modifier
|
||||||
.size(24.dp)
|
.size(24.dp)
|
||||||
.clip(RoundedCornerShape(8.dp))
|
.clip(RoundedCornerShape(8.dp))
|
||||||
.background(AppColors.decentBackground),
|
.background(AppColors.decentBackground)
|
||||||
|
.noRippleClickable {
|
||||||
|
navController.navigateToGroupInfo(groupId)
|
||||||
|
},
|
||||||
contentAlignment = Alignment.Center
|
contentAlignment = Alignment.Center
|
||||||
) {
|
) {
|
||||||
Text(
|
Text(
|
||||||
|
|||||||
Reference in New Issue
Block a user