会话分组及聊天室实现
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user