feat: Display read receipts for every event
This commit is contained in:
parent
193d68a525
commit
6cb7775c93
3 changed files with 8 additions and 16 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue