Prevent empty message sends with enter-key sends enabled.

This commit is contained in:
Cody Henthorne
2023-08-23 10:25:48 -04:00
parent c5edcf47bd
commit dcbf4b8faf

View File

@@ -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") Log.i(TAG, "Unable to send due to empty message")
toast(R.string.ConversationActivity_message_is_empty_exclamation) toast(R.string.ConversationActivity_message_is_empty_exclamation)
return return