Фикс имени пользователя в пузырьке reply
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user