Remove useless let statement.

This commit is contained in:
Benoit Marty
2026-08-13 11:47:22 +02:00
parent 590e33de71
commit d017a84b2b
@@ -133,11 +133,9 @@ fun MarkdownTextInput(
update = { editText -> update = { editText ->
editText.contentDescription = placeholder editText.contentDescription = placeholder
editText.applyStyleInCompose(richTextEditorStyle) editText.applyStyleInCompose(richTextEditorStyle)
editText.onEnterKeyListener = onSendMessage?.let { send -> editText.onEnterKeyListener = {
{ onSendMessage()
send() true
true
}
} }
val text = state.text.value() val text = state.text.value()
mentionSpanUpdater.updateMentionSpans(text) mentionSpanUpdater.updateMentionSpans(text)