Skip to content

Commit

Permalink
Notify originalReportID on emoji reaction
Browse files Browse the repository at this point in the history
  • Loading branch information
paultsimura committed Oct 3, 2023
1 parent e30dce1 commit 50d276e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/Report.js
Original file line number Diff line number Diff line change
Expand Up @@ -1827,11 +1827,11 @@ function toggleEmojiReaction(reportID, reportAction, reactionObject, existingRea
const skinTone = emoji.types === undefined ? -1 : paramSkinTone;

if (existingReactionObject && hasAccountIDEmojiReacted(currentUserAccountID, existingReactionObject.users, skinTone)) {
removeEmojiReaction(reportID, reportAction.reportActionID, emoji);
removeEmojiReaction(originalReportID, reportAction.reportActionID, emoji);
return;
}

addEmojiReaction(reportID, reportAction.reportActionID, emoji, skinTone);
addEmojiReaction(originalReportID, reportAction.reportActionID, emoji, skinTone);
}

/**
Expand Down

0 comments on commit 50d276e

Please sign in to comment.