Skip to content

Commit 7242ad4

Browse files
committed
No need to use also here.
1 parent 7e40b93 commit 7242ad4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class MessageComposerViewModel @AssistedInject constructor(
150150
}
151151

152152
private fun handleOnTextChanged(action: MessageComposerAction.OnTextChanged) {
153-
val needsSendButtonVisibilityUpdate = currentComposerText.isBlank() != action.text.isBlank()
153+
val needsSendButtonVisibilityUpdate = currentComposerText.isBlank() != action.text.isBlank()
154154
currentComposerText = SpannableString(action.text)
155155
if (needsSendButtonVisibilityUpdate) {
156156
updateIsSendButtonVisibility(true)
@@ -239,9 +239,8 @@ class MessageComposerViewModel @AssistedInject constructor(
239239

240240
private fun handleSendMessage(room: Room, action: MessageComposerAction.SendMessage) {
241241
withState { state ->
242-
analyticsTracker.capture(state.toAnalyticsComposer()).also {
243-
setState { copy(startsThread = false) }
244-
}
242+
analyticsTracker.capture(state.toAnalyticsComposer())
243+
setState { copy(startsThread = false) }
245244
when (state.sendMode) {
246245
is SendMode.Regular -> {
247246
when (val parsedCommand = commandParser.parseSlashCommand(

0 commit comments

Comments
 (0)