Made cleanUpCode() as static TwitchEmotes's method.

This commit is contained in:
23rd
2018-11-05 19:04:52 +03:00
committed by pajlada
parent 23458aa1df
commit 0d48c04d8a
4 changed files with 31 additions and 33 deletions
@@ -4,6 +4,7 @@
#include "messages/Emote.hpp"
#include "messages/Image.hpp"
#include "messages/MessageElement.hpp"
#include "providers/twitch/TwitchEmotes.hpp"
#include "singletons/Theme.hpp"
#include "util/DebugCount.hpp"
@@ -99,7 +100,7 @@ void ImageLayoutElement::addCopyTextToString(QString &str, int from,
if (emoteElement)
{
str += emoteElement->getEmote()->getCopyString();
str.replace("&lt;", "<").replace("&gt;", ">");
str = TwitchEmotes::cleanUpEmoteCode(EmoteName{str});
if (this->hasTrailingSpace())
{
str += " ";