Add support for 7TV and FFZ emote authors (#306)

This commit is contained in:
Tommy Chow 2023-11-28 03:58:07 -05:00 • committed by GitHub
parent 8fab6bdbc9
commit 9e91208555
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 54 additions and 11 deletions

View file

@ -651,7 +651,16 @@ class IRCMessage {
title: emote.realName != null
? '${emote.name} (${emote.realName})'
: emote.name,
subtitle: Text(emote.type.toString()),
subtitle: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(emote.type.toString()),
if (emote.ownerDisplayName != null && emote.ownerUsername != null)
Text(
'by ${getReadableName(emote.ownerDisplayName!, emote.ownerUsername!)}',
),
],
),
launchExternal: launchExternal,
);
}