diff --git a/lib/widgets/post/post_item.dart b/lib/widgets/post/post_item.dart index 2506cb8c..7dfadb38 100644 --- a/lib/widgets/post/post_item.dart +++ b/lib/widgets/post/post_item.dart @@ -340,7 +340,14 @@ class PostItem extends HookConsumerWidget { final delta = isRemoving ? -1 : 1; final reactionsCount = Map.from(item.reactionsCount); reactionsCount[symbol] = (reactionsCount[symbol] ?? 0) + delta; - onUpdate?.call(item.copyWith(reactionsCount: reactionsCount)); + final reactionsMade = Map.from(item.reactionsMade); + reactionsMade[symbol] = delta == 1 ? true : false; + onUpdate?.call( + item.copyWith( + reactionsCount: reactionsCount, + reactionsMade: reactionsMade, + ), + ); HapticFeedback.heavyImpact(); }); reacting.value = false;