feat(messaging): Add bell character to alert message and refine trim (#4532)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2026-02-11 08:16:20 -06:00 committed by GitHub
parent 1efff35330
commit 9d583bdfc9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -393,7 +393,7 @@ fun MessageScreen(
isHomoglyphEncodingEnabled = homoglyphEncodingEnabled,
textFieldState = messageInputState,
onSendMessage = {
val messageText = messageInputState.text.toString().trim()
val messageText = messageInputState.text.toString().trim { it.isWhitespace() }
if (messageText.isNotEmpty()) {
onEvent(MessageScreenEvent.SendMessage(messageText, replyingToPacketId))
}
@ -866,7 +866,7 @@ private fun QuickChatRow(
// Memoize if content is static
QuickChatAction(
name = "🔔",
message = "🔔 $alertActionMessage ", // Bell character added to message
message = "🔔 $alertActionMessage \u0007", // Bell character added to message
mode = QuickChatAction.Mode.Append,
position = -1, // Assuming -1 means it's a special prepended action
)