2018-06-26 14:09:39 +02:00
|
|
|
#include "singletons/EmoteManager.hpp"
|
2018-04-27 22:11:19 +02:00
|
|
|
|
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
|
|
|
|
2018-04-27 22:11:19 +02:00
|
|
|
void EmoteManager::initialize()
|
|
|
|
{
|
2018-05-26 20:26:25 +02:00
|
|
|
getApp()->accounts->twitch.currentUserChanged.connect([this] {
|
|
|
|
auto currentUser = getApp()->accounts->twitch.getCurrent();
|
2017-12-22 17:37:24 +01:00
|
|
|
assert(currentUser);
|
2018-06-05 17:13:29 +02:00
|
|
|
this->twitch.refresh(currentUser);
|
2017-07-23 14:16:13 +02:00
|
|
|
});
|
2017-06-13 21:13:58 +02:00
|
|
|
|
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();
|
2018-06-05 18:30:26 +02:00
|
|
|
|
|
|
|
this->gifTimer.initialize();
|
2017-04-12 17:46:44 +02:00
|
|
|
}
|
2017-01-15 16:38:30 +01:00
|
|
|
|
2018-06-28 19:38:57 +02:00
|
|
|
bool EmoteManager::isIgnoredEmote(const QString &)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2017-05-27 16:16:39 +02:00
|
|
|
} // namespace chatterino
|