refactor: Use more robust and performant way to detect single emoji messages

This commit is contained in:
Christian Kußowski 2026-02-27 19:08:27 +01:00
commit f0aa15843b
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
4 changed files with 18 additions and 3 deletions

View file

@ -48,6 +48,7 @@ class Message extends StatelessWidget {
final List<Color> colors;
final void Function()? onExpand;
final bool isCollapsed;
final Set<String> bigEmojis;
const Message(
this.event, {
@ -55,6 +56,7 @@ class Message extends StatelessWidget {
this.previousEvent,
this.displayReadMarker = false,
this.longPressSelect = false,
required this.bigEmojis,
required this.onSelect,
required this.onInfoTab,
required this.scrollToEventId,
@ -612,6 +614,7 @@ class Message extends StatelessWidget {
borderRadius,
timeline: timeline,
selected: selected,
bigEmojis: bigEmojis,
),
if (event
.hasAggregatedEvents(