Фикс имени пользователя в пузырьке reply
This commit is contained in:
@@ -381,11 +381,19 @@ fun MessageInputBar(
|
|||||||
)
|
)
|
||||||
Spacer(modifier = Modifier.width(10.dp))
|
Spacer(modifier = Modifier.width(10.dp))
|
||||||
Column(modifier = Modifier.weight(1f)) {
|
Column(modifier = Modifier.weight(1f)) {
|
||||||
|
val replyTargetName =
|
||||||
|
panelReplyMessages.firstOrNull()?.let { reply ->
|
||||||
|
if (reply.isOutgoing) {
|
||||||
|
"You"
|
||||||
|
} else {
|
||||||
|
reply.senderName.ifBlank { chatTitle }
|
||||||
|
}
|
||||||
|
} ?: "You"
|
||||||
Text(
|
Text(
|
||||||
text = if (panelIsForwardMode)
|
text = if (panelIsForwardMode)
|
||||||
"Forward message${if (panelReplyMessages.size > 1) "s" else ""}"
|
"Forward message${if (panelReplyMessages.size > 1) "s" else ""}"
|
||||||
else
|
else
|
||||||
"Reply to ${if (panelReplyMessages.size == 1 && !panelReplyMessages.first().isOutgoing) chatTitle else "You"}",
|
"Reply to $replyTargetName",
|
||||||
fontSize = 13.sp,
|
fontSize = 13.sp,
|
||||||
fontWeight = FontWeight.SemiBold,
|
fontWeight = FontWeight.SemiBold,
|
||||||
color = PrimaryBlue,
|
color = PrimaryBlue,
|
||||||
|
|||||||
Reference in New Issue
Block a user