Harden emote parsing (#3885)

This commit is contained in:
pajlada
2022-11-05 11:04:35 +01:00
committed by GitHub
parent f00f766eeb
commit aac9ea53d0
14 changed files with 1163 additions and 104 deletions
+14 -1
View File
@@ -14,7 +14,15 @@ namespace chatterino {
class Settings;
class Paths;
class Emotes final : public Singleton
class IEmotes
{
public:
virtual ~IEmotes() = default;
virtual ITwitchEmotes *getTwitchEmotes() = 0;
};
class Emotes final : public IEmotes, public Singleton
{
public:
Emotes();
@@ -23,6 +31,11 @@ public:
bool isIgnoredEmote(const QString &emote);
ITwitchEmotes *getTwitchEmotes() final
{
return &this->twitch;
}
TwitchEmotes twitch;
Emojis emojis;