Fix underlying text from disabled emotes not being colorized after using /me (#3333)

This commit is contained in:
Ryan
2021-10-31 06:37:06 -04:00
committed by GitHub
parent b4b745024c
commit b4be7a4b1f
4 changed files with 19 additions and 10 deletions
+4 -3
View File
@@ -142,12 +142,13 @@ void ImageElement::addToContainer(MessageLayoutContainer &container,
}
// EMOTE
EmoteElement::EmoteElement(const EmotePtr &emote, MessageElementFlags flags)
EmoteElement::EmoteElement(const EmotePtr &emote, MessageElementFlags flags,
const MessageColor &textElementColor)
: MessageElement(flags)
, emote_(emote)
{
this->textElement_.reset(
new TextElement(emote->getCopyString(), MessageElementFlag::Misc));
this->textElement_.reset(new TextElement(
emote->getCopyString(), MessageElementFlag::Misc, textElementColor));
this->setTooltip(emote->tooltip.string);
}