We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1d2581 commit cad5e73Copy full SHA for cad5e73
vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerViewModel.kt
@@ -138,7 +138,7 @@ class MessageComposerViewModel @AssistedInject constructor(
138
}
139
140
private fun handleOnTextChanged(action: MessageComposerAction.OnTextChanged) {
141
- val needsSendButtonVisibilityUpdate = currentComposerText.isEmpty() != action.text.isEmpty()
+ val needsSendButtonVisibilityUpdate = currentComposerText.isBlank() != action.text.isBlank()
142
currentComposerText = SpannableString(action.text)
143
if (needsSendButtonVisibilityUpdate) {
144
updateIsSendButtonVisibility(true)
0 commit comments