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;
|
if (!apiReaction) return undefined;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
isChosen: Boolean(chosenOrder), // TODO: Add custom reactions support
|
isChosen: chosenOrder !== undefined, // TODO: Add custom reactions support
|
||||||
count,
|
count,
|
||||||
reaction: apiReaction,
|
reaction: apiReaction,
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user