Skip to content

Commit cad5e73

Browse files
committed
Fix issue of send button not displayed when starting message with a space.
1 parent b1d2581 commit cad5e73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class MessageComposerViewModel @AssistedInject constructor(
138138
}
139139

140140
private fun handleOnTextChanged(action: MessageComposerAction.OnTextChanged) {
141-
val needsSendButtonVisibilityUpdate = currentComposerText.isEmpty() != action.text.isEmpty()
141+
val needsSendButtonVisibilityUpdate = currentComposerText.isBlank() != action.text.isBlank()
142142
currentComposerText = SpannableString(action.text)
143143
if (needsSendButtonVisibilityUpdate) {
144144
updateIsSendButtonVisibility(true)

0 commit comments

Comments
 (0)