From eb23e6223ade6e2cfccfae40cefdeca0f034cfda Mon Sep 17 00:00:00 2001 From: yamilmedina Date: Wed, 17 Apr 2024 12:30:31 +0200 Subject: [PATCH] feat: fix not displaying options --- .../ui/home/messagecomposer/EnabledMessageComposer.kt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/EnabledMessageComposer.kt b/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/EnabledMessageComposer.kt index 1ceabba4c29..d59e07fe469 100644 --- a/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/EnabledMessageComposer.kt +++ b/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/EnabledMessageComposer.kt @@ -261,10 +261,7 @@ fun EnabledMessageComposer( additionalOptionStateHolder.toRichTextEditing() }, onCloseRichEditingButtonClicked = additionalOptionStateHolder::toAttachmentAndAdditionalOptionsMenu, - onDrawingModeClicked = { - inputStateHolder.collapseComposer() - additionalOptionStateHolder.toDrawingMode() - } + onDrawingModeClicked = additionalOptionStateHolder::toDrawingMode ) } Box( @@ -305,10 +302,7 @@ fun EnabledMessageComposer( }, onSendSketch = { onAttachmentPicked(UriAsset(it)) - inputStateHolder.handleBackPressed( - isImeVisible, - additionalOptionStateHolder.additionalOptionsSubMenuState - ) + inputStateHolder.collapseComposer(additionalOptionStateHolder.additionalOptionsSubMenuState) }, conversationTitle = CurrentConversationDetailsCache.conversationName.asString(), tempWritableImageUri = tempWritableImageUri