mirror-chatterino2/src/singletons/EmoteManager.cpp

24 lines
554 B
C++
Raw Normal View History

2018-06-26 14:09:39 +02:00
#include "singletons/EmoteManager.hpp"
2018-06-26 14:09:39 +02:00
#include "Application.hpp"
#include "controllers/accounts/AccountController.hpp"
2017-01-04 15:12:31 +01:00
2017-04-14 17:52:22 +02:00
namespace chatterino {
2017-01-18 21:30:23 +01:00
void EmoteManager::initialize()
{
2018-05-26 20:26:25 +02:00
getApp()->accounts->twitch.currentUserChanged.connect([this] {
auto currentUser = getApp()->accounts->twitch.getCurrent();
assert(currentUser);
this->twitch.refresh(currentUser);
});
2018-06-05 18:53:49 +02:00
this->emojis.load();
2018-06-05 17:39:49 +02:00
this->bttv.loadGlobalEmotes();
2018-06-05 18:07:17 +02:00
this->ffz.loadGlobalEmotes();
this->gifTimer.initialize();
2017-04-12 17:46:44 +02:00
}
2017-01-15 16:38:30 +01:00
2017-05-27 16:16:39 +02:00
} // namespace chatterino