Skip to content

Commit 045bb77

Browse files
committed
fix incorrect badge order and spacing for ffz bots
1 parent af99a97 commit 045bb77

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/models/irc.dart

+3-2
Original file line numberDiff line numberDiff line change
@@ -305,8 +305,9 @@ class IRCMessage {
305305

306306
if (badge.name == 'Bot') {
307307
if (!skipBot) {
308+
final indexToInsert = isHistorical ? 2 : 0;
308309
span.insert(
309-
0,
310+
indexToInsert,
310311
_createBadgeSpan(
311312
context,
312313
badge: badge,
@@ -315,7 +316,7 @@ class IRCMessage {
315316
launchExternal: launchExternal,
316317
),
317318
);
318-
span.add(const TextSpan(text: ' '));
319+
span.insert(indexToInsert + 1, const TextSpan(text: ' '));
319320
}
320321
} else {
321322
span.add(

0 commit comments

Comments
 (0)