fix incorrect badge order and spacing for ffz bots
This commit is contained in:
parent
af99a97c04
commit
045bb775ee
1 changed files with 3 additions and 2 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue