mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-05-19 12:18:43 -04:00
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:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user