From c0ed7a65af36f92e8eb6747931884ba842d3621d Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Mon, 17 Oct 2022 18:40:07 +0200 Subject: [PATCH] Fix detecting chosen reaction --- src/api/gramjs/apiBuilders/messages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/gramjs/apiBuilders/messages.ts b/src/api/gramjs/apiBuilders/messages.ts index 9ec61deb9..93f6f9af6 100644 --- a/src/api/gramjs/apiBuilders/messages.ts +++ b/src/api/gramjs/apiBuilders/messages.ts @@ -226,7 +226,7 @@ function buildReactionCount(reactionCount: GramJs.ReactionCount): ApiReactionCou if (!apiReaction) return undefined; return { - isChosen: Boolean(chosenOrder), // TODO: Add custom reactions support + isChosen: chosenOrder !== undefined, // TODO: Add custom reactions support count, reaction: apiReaction, };