Skip to content

Commit

Permalink
Merge pull request #23782 from hungvu193/fix-23325
Browse files Browse the repository at this point in the history
Fix reaction appears for deleted message
  • Loading branch information
MonilBhavsar authored Jul 31, 2023
2 parents cbf6666 + 4b88fcc commit dc32700
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,23 +381,25 @@ function ReportActionItem(props) {
<LinkPreviewer linkMetadata={_.filter(props.action.linkMetadata, (item) => !_.isEmpty(item))} />
</View>
)}
<View style={draftMessageRightAlign}>
<ReportActionItemEmojiReactions
reportActionID={props.action.reportActionID}
emojiReactions={props.emojiReactions}
toggleReaction={(emoji) => {
if (Session.isAnonymousUser()) {
hideContextMenu(false);

InteractionManager.runAfterInteractions(() => {
Session.signOutAndRedirectToSignIn();
});
} else {
toggleReaction(emoji);
}
}}
/>
</View>
{!ReportActionsUtils.isMessageDeleted(props.action) && (
<View style={draftMessageRightAlign}>
<ReportActionItemEmojiReactions
reportActionID={props.action.reportActionID}
emojiReactions={props.emojiReactions}
toggleReaction={(emoji) => {
if (Session.isAnonymousUser()) {
hideContextMenu(false);

InteractionManager.runAfterInteractions(() => {
Session.signOutAndRedirectToSignIn();
});
} else {
toggleReaction(emoji);
}
}}
/>
</View>
)}

{shouldDisplayThreadReplies && (
<View style={draftMessageRightAlign}>
Expand Down

0 comments on commit dc32700

Please sign in to comment.