会话分组及聊天室实现

This commit is contained in:
weber
2025-08-11 18:21:22 +08:00
parent 54ca1d3f1c
commit 697af504b7
23 changed files with 1049 additions and 115 deletions

View File

@@ -186,7 +186,7 @@ fun ChatAiScreen(userId: String) {
CustomAsyncImage(
imageUrl = viewModel.userProfile?.avatar ?: "",
modifier = Modifier
.size(40.dp)
.size(32.dp)
.clip(RoundedCornerShape(40.dp)),
contentDescription = "avatar"
)
@@ -197,7 +197,7 @@ fun ChatAiScreen(userId: String) {
style = TextStyle(
color = AppColors.text,
fontSize = 18.sp,
fontWeight = androidx.compose.ui.text.font.FontWeight.Bold
fontWeight = androidx.compose.ui.text.font.FontWeight.W700
)
)
Spacer(modifier = Modifier.weight(1f))

View File

@@ -260,7 +260,7 @@ class ChatAiViewModel(
message: String,
) {
viewModelScope.launch {
val response = ApiClient.api.sendChatAiMessage(SendChatAiRequestBody(fromTrtcUserId = fromTrtcUserId,toTrtcUserId = toTrtcUserId,message = message))
val response = ApiClient.api.sendChatAiMessage(SendChatAiRequestBody(fromTrtcUserId = fromTrtcUserId,toTrtcUserId = toTrtcUserId,message = message,skipTrtc = true))
}
}