From 9768203f1bf7b0afa0a6053c6a1dc003c68b8d53 Mon Sep 17 00:00:00 2001 From: Justin Date: Fri, 23 Sep 2022 12:53:55 -0400 Subject: [PATCH] Open chat pane on action --- app/soapbox/features/chats/components/chat-pane/chat-pane.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/soapbox/features/chats/components/chat-pane/chat-pane.tsx b/app/soapbox/features/chats/components/chat-pane/chat-pane.tsx index f1ceec98f..dd4b2fc01 100644 --- a/app/soapbox/features/chats/components/chat-pane/chat-pane.tsx +++ b/app/soapbox/features/chats/components/chat-pane/chat-pane.tsx @@ -96,6 +96,10 @@ const ChatPane = () => { secondaryAction={() => { setSearching(true); setValue(undefined); + + if (!isOpen) { + toggleChatPane(); + } }} secondaryActionIcon={require('@tabler/icons/edit.svg')} />