Skip to content

Commit

Permalink
Merge pull request #28796 from paultsimura/fix/27536-thread-reaction
Browse files Browse the repository at this point in the history
fix: Reactions in thread do not update parent action
  • Loading branch information
Julesssss authored Oct 6, 2023
2 parents 85e8ebc + 50d276e commit 9e823d8
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 @@ -1852,11 +1852,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 9e823d8

Please sign in to comment.