Do not allow the sending of whitespace-only messages.

This commit is contained in:
Greyson Parrelli
2023-08-21 17:20:04 -04:00
committed by Cody Henthorne
parent 1e6126d5be
commit e3be279f1f

View File

@@ -1686,7 +1686,7 @@ class ConversationFragment :
inlineAttachment.hide()
}
composeText.text?.isEmpty() == true && !attachmentManager.isAttachmentPresent -> {
composeText.text.isNullOrBlank() && !attachmentManager.isAttachmentPresent -> {
buttonToggle.display(binding.conversationInputPanel.attachButton)
quickAttachment.show()
inlineAttachment.hide()