From bf8a7e33fed17c98c65a169978ce87a6cd07f415 Mon Sep 17 00:00:00 2001 From: Pavel Prichodko <14926950+prichodko@users.noreply.github.com> Date: Wed, 15 Jun 2022 11:45:50 +0200 Subject: [PATCH] add rationale comment --- packages/status-js/src/client/community/get-reactions.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/status-js/src/client/community/get-reactions.ts b/packages/status-js/src/client/community/get-reactions.ts index 89730d45..6f20155e 100644 --- a/packages/status-js/src/client/community/get-reactions.ts +++ b/packages/status-js/src/client/community/get-reactions.ts @@ -20,6 +20,7 @@ export function getReactions( if (retracted) { reactions[type].delete(publicKey) } else { + // Set handles that potentially multiple same reactions count as one reactions[type].add(publicKey) }