use badge for historical message indicator
This commit is contained in:
parent
817289a01d
commit
80837beaa8
5 changed files with 15 additions and 44 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue