fix latest reaction when sending a new reaction
This commit is contained in:
@@ -833,10 +833,11 @@ class Channel {
|
|||||||
extraData: extraData,
|
extraData: extraData,
|
||||||
);
|
);
|
||||||
|
|
||||||
latestReactions = latestReactions
|
latestReactions = (latestReactions
|
||||||
// Inserting at the 0th index as it's the latest reaction
|
// Inserting at the 0th index as it's the latest reaction
|
||||||
..insert(0, newReaction)
|
..insert(0, newReaction))
|
||||||
..take(10);
|
.take(10)
|
||||||
|
.toList();
|
||||||
final ownReactions = enforceUnique
|
final ownReactions = enforceUnique
|
||||||
? <Reaction>[newReaction]
|
? <Reaction>[newReaction]
|
||||||
: <Reaction>[
|
: <Reaction>[
|
||||||
|
|||||||
Reference in New Issue
Block a user