From f32d8b7069391c59a5cd3ff14948e8ce12294e0f Mon Sep 17 00:00:00 2001 From: MeiMei <30769358+mei23@users.noreply.github.com> Date: Thu, 16 Apr 2020 00:45:43 +0900 Subject: [PATCH] =?UTF-8?q?0=E4=BB=A5=E4=B8=8B=E3=81=AE=E3=83=AA=E3=82=A2?= =?UTF-8?q?=E3=82=AF=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=AF=E9=80=81=E3=82=89?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=20Resolve=20#6263?= =?UTF-8?q?=20(#6264)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/misc/reaction-lib.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/misc/reaction-lib.ts b/src/misc/reaction-lib.ts index e5da5ca4aa..d59fb67a6b 100644 --- a/src/misc/reaction-lib.ts +++ b/src/misc/reaction-lib.ts @@ -26,6 +26,8 @@ export function convertLegacyReactions(reactions: Record) { const _reactions = {} as Record; for (const reaction of Object.keys(reactions)) { + if (reactions[reaction] <= 0) continue; + if (Object.keys(legacies).includes(reaction)) { if (_reactions[legacies[reaction]]) { _reactions[legacies[reaction]] += reactions[reaction];