From 4b88fcc1a36750960aae52f00d20f358e0ee009d Mon Sep 17 00:00:00 2001 From: Hans Date: Fri, 28 Jul 2023 17:32:51 +0700 Subject: [PATCH] fix reaction appears for deleted message --- src/pages/home/report/ReportActionItem.js | 36 ++++++++++++----------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/src/pages/home/report/ReportActionItem.js b/src/pages/home/report/ReportActionItem.js index 62a90b0bcd62..8c6defcb2951 100644 --- a/src/pages/home/report/ReportActionItem.js +++ b/src/pages/home/report/ReportActionItem.js @@ -381,23 +381,25 @@ function ReportActionItem(props) { !_.isEmpty(item))} /> )} - - { - if (Session.isAnonymousUser()) { - hideContextMenu(false); - - InteractionManager.runAfterInteractions(() => { - Session.signOutAndRedirectToSignIn(); - }); - } else { - toggleReaction(emoji); - } - }} - /> - + {!ReportActionsUtils.isMessageDeleted(props.action) && ( + + { + if (Session.isAnonymousUser()) { + hideContextMenu(false); + + InteractionManager.runAfterInteractions(() => { + Session.signOutAndRedirectToSignIn(); + }); + } else { + toggleReaction(emoji); + } + }} + /> + + )} {shouldDisplayThreadReplies && (