Fix detecting chosen reaction
This commit is contained in:
parent
9732c16fc9
commit
c0ed7a65af
@ -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,
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user