From 8a43d336dd359c2233430842079cafc7648faea1 Mon Sep 17 00:00:00 2001 From: Boris Safonov Date: Tue, 21 Jan 2025 12:38:18 +0200 Subject: [PATCH] fix: Send btn not shown on closed keyboard --- .../messagecomposer/MessageComposerInput.kt | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/MessageComposerInput.kt b/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/MessageComposerInput.kt index 84f9b347b1..9eeed0f343 100644 --- a/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/MessageComposerInput.kt +++ b/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/MessageComposerInput.kt @@ -246,16 +246,14 @@ private fun InputContent( UsersTypingIndicatorForConversation(conversationId = conversationId) } } - if (showOptions) { - if (inputType is InputType.Composing) { - MessageSendActions( - onSendButtonClicked = onSendButtonClicked, - sendButtonEnabled = inputType.isSendButtonEnabled, - selfDeletionTimer = viewModel.state(), - onChangeSelfDeletionClicked = onChangeSelfDeletionClicked, - modifier = Modifier.padding(end = dimensions().spacing8x) - ) - } + if (inputType is InputType.Composing && (showOptions || inputType.isSendButtonEnabled)) { + MessageSendActions( + onSendButtonClicked = onSendButtonClicked, + sendButtonEnabled = inputType.isSendButtonEnabled, + selfDeletionTimer = viewModel.state(), + onChangeSelfDeletionClicked = onChangeSelfDeletionClicked, + modifier = Modifier.padding(end = dimensions().spacing8x) + ) } } }