Prevent empty message sends with enter-key sends enabled.
This commit is contained in:
parent
c5edcf47bd
commit
dcbf4b8faf
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue