use badge for historical message indicator

This commit is contained in:
Tommy Chow 2024-12-23 17:40:00 -05:00
parent 817289a01d
commit 80837beaa8
5 changed files with 15 additions and 44 deletions

View file

@ -170,6 +170,21 @@ class IRCMessage {
}
}
final isHistorical = tags['historical'] == '1';
if (isHistorical) {
span.add(
WidgetSpan(
child: Tooltip(
message: 'Historical message',
preferBelow: false,
triggerMode: TooltipTriggerMode.tap,
child: Icon(Icons.history_rounded, size: badgeSize),
),
),
);
span.add(const TextSpan(text: ' '));
}
final sourceChannelId = tags['source-room-id'] ?? tags['room-id'];
final sourceChannelUser = channelIdToUserTwitch != null
? channelIdToUserTwitch[sourceChannelId]