fix incorrect badge order and spacing for ffz bots

This commit is contained in:
Tommy Chow 2024-12-27 04:46:27 -05:00
parent af99a97c04
commit 045bb775ee

View file

@ -305,8 +305,9 @@ class IRCMessage {
if (badge.name == 'Bot') { if (badge.name == 'Bot') {
if (!skipBot) { if (!skipBot) {
final indexToInsert = isHistorical ? 2 : 0;
span.insert( span.insert(
0, indexToInsert,
_createBadgeSpan( _createBadgeSpan(
context, context,
badge: badge, badge: badge,
@ -315,7 +316,7 @@ class IRCMessage {
launchExternal: launchExternal, launchExternal: launchExternal,
), ),
); );
span.add(const TextSpan(text: ' ')); span.insert(indexToInsert + 1, const TextSpan(text: ' '));
} }
} else { } else {
span.add( span.add(