refactor: load Twitch emotes from Helix (#5239)
This commit is contained in:
@@ -1508,10 +1508,10 @@ void Split::showSearch(bool singleChannel)
|
||||
void Split::reloadChannelAndSubscriberEmotes()
|
||||
{
|
||||
auto channel = this->getChannel();
|
||||
getApp()->getAccounts()->twitch.getCurrent()->loadEmotes(channel);
|
||||
|
||||
if (auto *twitchChannel = dynamic_cast<TwitchChannel *>(channel.get()))
|
||||
{
|
||||
twitchChannel->refreshTwitchChannelEmotes(true);
|
||||
twitchChannel->refreshBTTVChannelEmotes(true);
|
||||
twitchChannel->refreshFFZChannelEmotes(true);
|
||||
twitchChannel->refreshSevenTVChannelEmotes(true);
|
||||
|
||||
@@ -1078,7 +1078,10 @@ void SplitHeader::reloadSubscriberEmotes()
|
||||
this->lastReloadedSubEmotes_ = now;
|
||||
|
||||
auto channel = this->split_->getChannel();
|
||||
getApp()->getAccounts()->twitch.getCurrent()->loadEmotes(channel);
|
||||
if (auto *twitchChannel = dynamic_cast<TwitchChannel *>(channel.get()))
|
||||
{
|
||||
twitchChannel->refreshTwitchChannelEmotes(true);
|
||||
}
|
||||
}
|
||||
|
||||
void SplitHeader::reconnect()
|
||||
|
||||
Reference in New Issue
Block a user