fix latest reaction when sending a new reaction

This commit is contained in:
Salvatore Giordano
2022-02-01 12:16:40 +01:00
parent 90be047cbc
commit a07fdda490
@@ -833,10 +833,11 @@ class Channel {
extraData: extraData,
);
latestReactions = latestReactions
// Inserting at the 0th index as it's the latest reaction
..insert(0, newReaction)
..take(10);
latestReactions = (latestReactions
// Inserting at the 0th index as it's the latest reaction
..insert(0, newReaction))
.take(10)
.toList();
final ownReactions = enforceUnique
? <Reaction>[newReaction]
: <Reaction>[