mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
parent
1928fb64fa
commit
7e0999fdc0
1 changed files with 2 additions and 3 deletions
|
|
@ -264,6 +264,8 @@ internal fun MessageScreen(
|
|||
viewModel.sendMessage(message, contactKey, it.packetId)
|
||||
replyingTo = null
|
||||
} ?: viewModel.sendMessage(message, contactKey)
|
||||
// Clear the text input after sending the message and updating all state
|
||||
messageInput.value = TextFieldValue("")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -465,7 +467,6 @@ private fun TextInput(
|
|||
val str = message.value.text.trim()
|
||||
if (str.isNotEmpty()) {
|
||||
onClick(str)
|
||||
message.value = TextFieldValue("")
|
||||
}
|
||||
true // Consume the event
|
||||
} else {
|
||||
|
|
@ -483,7 +484,6 @@ private fun TextInput(
|
|||
val str = message.value.text.trim()
|
||||
if (str.isNotEmpty()) {
|
||||
onClick(str)
|
||||
message.value = TextFieldValue("")
|
||||
}
|
||||
}
|
||||
),
|
||||
|
|
@ -495,7 +495,6 @@ private fun TextInput(
|
|||
val str = message.value.text.trim()
|
||||
if (str.isNotEmpty()) {
|
||||
onClick(str)
|
||||
message.value = TextFieldValue("")
|
||||
focusManager.clearFocus()
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue