From 50d276eaa9036cd4dca360533a969ae22cce24e8 Mon Sep 17 00:00:00 2001 From: Pavlo Tsimura Date: Tue, 3 Oct 2023 20:04:19 +0200 Subject: [PATCH] Notify originalReportID on emoji reaction --- src/libs/actions/Report.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/actions/Report.js b/src/libs/actions/Report.js index e21d9fdd75c6..cee7cf5f5940 100644 --- a/src/libs/actions/Report.js +++ b/src/libs/actions/Report.js @@ -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); } /**