mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Remove useless let statement.
This commit is contained in:
+2
-4
@@ -133,12 +133,10 @@ 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)
|
||||||
if (state.text.needsDisplaying()) {
|
if (state.text.needsDisplaying()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user