Fix detecting chosen reaction

This commit is contained in:
Alexander Zinchuk 2022-10-17 18:40:07 +02:00
parent 9732c16fc9
commit c0ed7a65af

View File

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