From ffac8f0c3db081822d4ceca8018dd611cf737af7 Mon Sep 17 00:00:00 2001 From: Matt Grogan Date: Wed, 20 Dec 2023 11:31:02 +0000 Subject: [PATCH] Fix message actions issue (#5055) --- frontend/app/src/components/home/MessageActions.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/app/src/components/home/MessageActions.svelte b/frontend/app/src/components/home/MessageActions.svelte index 813f31787e..7c916ab610 100644 --- a/frontend/app/src/components/home/MessageActions.svelte +++ b/frontend/app/src/components/home/MessageActions.svelte @@ -31,6 +31,7 @@ $: showActions = !useDrawer || drawOpen; $: iconColour = editing ? "var(--button-txt)" : useDrawer ? "var(--txt)" : "var(--icon-txt)"; $: supportedActions = buildListOfActions(permittedMessages, messageAction, narrow); + $: showClose = drawOpen || attachment !== undefined || messageAction === "emoji"; export function close() { drawOpen = false; @@ -59,7 +60,7 @@ } function toggleDraw() { - if (drawOpen || attachment !== undefined) { + if (showClose) { close(); } else { drawOpen = true; @@ -157,7 +158,7 @@ {#if useDrawer}
- {#if drawOpen || attachment !== undefined} + {#if showClose}