diff --git a/app/src/main/java/com/rosetta/messenger/ui/chats/input/ChatDetailInput.kt b/app/src/main/java/com/rosetta/messenger/ui/chats/input/ChatDetailInput.kt index 27b07c1..c22370f 100644 --- a/app/src/main/java/com/rosetta/messenger/ui/chats/input/ChatDetailInput.kt +++ b/app/src/main/java/com/rosetta/messenger/ui/chats/input/ChatDetailInput.kt @@ -381,11 +381,19 @@ fun MessageInputBar( ) Spacer(modifier = Modifier.width(10.dp)) Column(modifier = Modifier.weight(1f)) { + val replyTargetName = + panelReplyMessages.firstOrNull()?.let { reply -> + if (reply.isOutgoing) { + "You" + } else { + reply.senderName.ifBlank { chatTitle } + } + } ?: "You" Text( text = if (panelIsForwardMode) "Forward message${if (panelReplyMessages.size > 1) "s" else ""}" else - "Reply to ${if (panelReplyMessages.size == 1 && !panelReplyMessages.first().isOutgoing) chatTitle else "You"}", + "Reply to $replyTargetName", fontSize = 13.sp, fontWeight = FontWeight.SemiBold, color = PrimaryBlue,