mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00: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:
parent
1efff35330
commit
9d583bdfc9
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue