feat: Display read receipts for every event

This commit is contained in:
Christian Kußowski 2026-02-15 11:54:47 +01:00
commit 6cb7775c93
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
3 changed files with 8 additions and 16 deletions

View file

@ -10,6 +10,7 @@ import 'package:swipe_to_action/swipe_to_action.dart';
import 'package:fluffychat/config/setting_keys.dart';
import 'package:fluffychat/config/themes.dart';
import 'package:fluffychat/l10n/l10n.dart';
import 'package:fluffychat/pages/chat/seen_by_row.dart';
import 'package:fluffychat/utils/adaptive_bottom_sheet.dart';
import 'package:fluffychat/utils/date_time_extension.dart';
import 'package:fluffychat/utils/file_description.dart';
@ -196,7 +197,7 @@ class Message extends StatelessWidget {
);
}
final showReceiptsRow = event.hasAggregatedEvents(
final hasReactions = event.hasAggregatedEvents(
timeline,
RelationshipTypes.reaction,
);
@ -841,11 +842,12 @@ class Message extends StatelessWidget {
);
},
),
AnimatedSize(
duration: FluffyThemes.animationDuration,
curve: FluffyThemes.animationCurve,
alignment: Alignment.bottomCenter,
child: !showReceiptsRow
child: !hasReactions
? const SizedBox.shrink()
: Padding(
padding: EdgeInsets.only(
@ -856,6 +858,7 @@ class Message extends StatelessWidget {
child: MessageReactions(event, timeline),
),
),
SeenByRow(timeline: timeline, event: event),
if (enterThread != null)
AnimatedSize(
duration: FluffyThemes.animationDuration,