File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
vector/src/main/java/im/vector/app/features/home/room/detail/composer Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ class MessageComposerViewModel @AssistedInject constructor(
150
150
}
151
151
152
152
private fun handleOnTextChanged (action : MessageComposerAction .OnTextChanged ) {
153
- val needsSendButtonVisibilityUpdate = currentComposerText.isBlank() != action.text.isBlank()
153
+ val needsSendButtonVisibilityUpdate = currentComposerText.isBlank() != action.text.isBlank()
154
154
currentComposerText = SpannableString (action.text)
155
155
if (needsSendButtonVisibilityUpdate) {
156
156
updateIsSendButtonVisibility(true )
@@ -239,9 +239,8 @@ class MessageComposerViewModel @AssistedInject constructor(
239
239
240
240
private fun handleSendMessage (room : Room , action : MessageComposerAction .SendMessage ) {
241
241
withState { state ->
242
- analyticsTracker.capture(state.toAnalyticsComposer()).also {
243
- setState { copy(startsThread = false ) }
244
- }
242
+ analyticsTracker.capture(state.toAnalyticsComposer())
243
+ setState { copy(startsThread = false ) }
245
244
when (state.sendMode) {
246
245
is SendMode .Regular -> {
247
246
when (val parsedCommand = commandParser.parseSlashCommand(
You can’t perform that action at this time.
0 commit comments