@@ -7,11 +7,13 @@ namespace chatterino {
|
|||||||
|
|
||||||
void Emotes::initialize(Application &app)
|
void Emotes::initialize(Application &app)
|
||||||
{
|
{
|
||||||
app.accounts->twitch.currentUserChanged.connect([this, &app] {
|
const auto refreshTwitchEmotes = [this, &app] {
|
||||||
auto currentUser = app.accounts->twitch.getCurrent();
|
auto currentUser = app.accounts->twitch.getCurrent();
|
||||||
assert(currentUser);
|
assert(currentUser);
|
||||||
this->twitch.refresh(currentUser);
|
this->twitch.refresh(currentUser);
|
||||||
});
|
};
|
||||||
|
app.accounts->twitch.currentUserChanged.connect(refreshTwitchEmotes);
|
||||||
|
refreshTwitchEmotes();
|
||||||
|
|
||||||
this->emojis.load();
|
this->emojis.load();
|
||||||
this->bttv.loadGlobalEmotes();
|
this->bttv.loadGlobalEmotes();
|
||||||
|
|||||||
Reference in New Issue
Block a user