File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
vector/src/main/java/im/vector/app/features/home/room/detail/composer Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package im.vector.app.features.home.room.detail.composer
18
18
19
+ import android.text.SpannableString
19
20
import androidx.lifecycle.asFlow
20
21
import com.airbnb.mvrx.MavericksViewModelFactory
21
22
import com.airbnb.mvrx.withState
@@ -150,7 +151,7 @@ class MessageComposerViewModel @AssistedInject constructor(
150
151
151
152
private fun handleOnTextChanged (action : MessageComposerAction .OnTextChanged ) {
152
153
val needsSendButtonVisibilityUpdate = currentComposerText.isBlank() != action.text.isBlank()
153
- currentComposerText = action.text
154
+ currentComposerText = SpannableString ( action.text)
154
155
if (needsSendButtonVisibilityUpdate) {
155
156
updateIsSendButtonVisibility(true )
156
157
}
You can’t perform that action at this time.
0 commit comments