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, };