mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
attempt to load global badges if no channel badge fits
Progress on #875 - Badges now render properly. this should also fix some other global badges not rendering
This commit is contained in:
parent
d8fcc1a3ed
commit
90309d00ea
1 changed files with 8 additions and 0 deletions
|
@ -1195,6 +1195,14 @@ void TwitchMessageBuilder::appendTwitchBadges()
|
|||
->setTooltip((*badgeEmote)->tooltip.string);
|
||||
continue;
|
||||
}
|
||||
if (auto badge = this->twitchChannel->globalTwitchBadges().badge(
|
||||
splits[0], splits[1]))
|
||||
{
|
||||
this->emplace<EmoteElement>(badge.get(),
|
||||
MessageElementFlag::BadgeVanity)
|
||||
->setTooltip((*badge)->tooltip.string);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue