mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 12:08:34 +00:00
Prevent empty message sends with enter-key sends enabled.
This commit is contained in:
@@ -1794,7 +1794,7 @@ class ConversationFragment :
|
||||
}
|
||||
}
|
||||
|
||||
if (body.isEmpty() && slideDeck?.containsMediaSlide() != true && preUploadResults.isEmpty() && contacts.isEmpty()) {
|
||||
if (body.isNullOrBlank() && slideDeck?.containsMediaSlide() != true && preUploadResults.isEmpty() && contacts.isEmpty()) {
|
||||
Log.i(TAG, "Unable to send due to empty message")
|
||||
toast(R.string.ConversationActivity_message_is_empty_exclamation)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user