fix: incorrect timeline reaction name

This commit is contained in:
Freek van de Ven 2024-05-24 10:09:56 +02:00
parent 31f93704b6
commit 1c46fbea4b
2 changed files with 3 additions and 2 deletions

View file

@ -19,6 +19,7 @@
- Fix like icon being used for both like and unliked posts - 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 - 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 - Change the CategorySelectorButton to use more styling options and allow for an icon to be shown
- Fix incorrect timeline reaction name
## 3.0.1 ## 3.0.1

View file

@ -483,7 +483,7 @@ class _TimelinePostScreenState extends State<TimelinePostScreen> {
children: [ children: [
Text( Text(
widget.options.nameBuilder widget.options.nameBuilder
?.call(post.creator) ?? ?.call(reaction.creator) ??
reaction.creator?.fullName ?? reaction.creator?.fullName ??
widget.options.translations widget.options.translations
.anonymousUser, .anonymousUser,
@ -504,7 +504,7 @@ class _TimelinePostScreenState extends State<TimelinePostScreen> {
child: Text.rich( child: Text.rich(
TextSpan( TextSpan(
text: widget.options.nameBuilder text: widget.options.nameBuilder
?.call(post.creator) ?? ?.call(reaction.creator) ??
reaction.creator?.fullName ?? reaction.creator?.fullName ??
widget widget
.options.translations.anonymousUser, .options.translations.anonymousUser,