diff --git a/CHANGELOG.md b/CHANGELOG.md index 83d379f..4d803fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ - Fix like icon being used for both like and unliked posts - Fix post creator can only like the post once and after it is actually created - Change the CategorySelectorButton to use more styling options and allow for an icon to be shown +- Fix incorrect timeline reaction name ## 3.0.1 diff --git a/packages/flutter_timeline_view/lib/src/screens/timeline_post_screen.dart b/packages/flutter_timeline_view/lib/src/screens/timeline_post_screen.dart index b1719c4..ce34156 100644 --- a/packages/flutter_timeline_view/lib/src/screens/timeline_post_screen.dart +++ b/packages/flutter_timeline_view/lib/src/screens/timeline_post_screen.dart @@ -483,7 +483,7 @@ class _TimelinePostScreenState extends State { children: [ Text( widget.options.nameBuilder - ?.call(post.creator) ?? + ?.call(reaction.creator) ?? reaction.creator?.fullName ?? widget.options.translations .anonymousUser, @@ -504,7 +504,7 @@ class _TimelinePostScreenState extends State { child: Text.rich( TextSpan( text: widget.options.nameBuilder - ?.call(post.creator) ?? + ?.call(reaction.creator) ?? reaction.creator?.fullName ?? widget .options.translations.anonymousUser,