fix: Twitch global emotes not loading (#5144)

This commit is contained in:
pajlada
2024-02-02 15:28:27 +01:00
committed by GitHub
parent d0c321e19f
commit ab7e6e0281
5 changed files with 8 additions and 16 deletions
-11
View File
@@ -20,21 +20,10 @@
namespace chatterino {
TwitchBadges::TwitchBadges()
{
this->loadTwitchBadges();
}
void TwitchBadges::loadTwitchBadges()
{
assert(this->loaded_ == false);
if (!getHelix())
{
// This is intended for tests and benchmarks.
return;
}
getHelix()->getGlobalBadges(
[this](auto globalBadges) {
auto badgeSets = this->badgeSets_.access();