From 0600416f77afd7c5c4dcb257c8c03fd8cdaf51af Mon Sep 17 00:00:00 2001 From: William Grant Date: Tue, 23 Aug 2022 16:50:49 +1000 Subject: [PATCH] fix: clearing your own reaction from the clear modal should close it --- ts/components/dialog/ReactListModal.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts/components/dialog/ReactListModal.tsx b/ts/components/dialog/ReactListModal.tsx index cfb89f6af..debc9fc70 100644 --- a/ts/components/dialog/ReactListModal.tsx +++ b/ts/components/dialog/ReactListModal.tsx @@ -111,6 +111,10 @@ const ReactionSenders = (props: ReactionSendersProps) => { const handleRemoveReaction = async () => { await sendMessageReaction(messageId, currentReact); + + if (senders.length <= 1) { + dispatch(updateReactListModal(null)); + } }; return (