Fixed code, things that fourtf asked for

This commit is contained in:
apa420 2018-07-04 13:50:26 +02:00 committed by fourtf
parent 4bf174376a
commit 31a38d19a7

View file

@ -229,11 +229,10 @@ MessagePtr TwitchMessageBuilder::build()
// Actually just text
QString linkString = this->matchLink(string);
auto Boldness = FontStyle::ChatMedium;
if (string[0] == '@' && app->settings->usernameBold) {
this->emplace<TextElement>(string, MessageElement::Text, textColor,
FontStyle::ChatMediumBold);
string = "";
Boldness = FontStyle::ChatMediumBold;
}
Link link;
@ -261,7 +260,8 @@ MessagePtr TwitchMessageBuilder::build()
textColor = MessageColor(MessageColor::Link);
}
this->emplace<TextElement>(string, MessageElement::Text, textColor) //
this->emplace<TextElement>(string, MessageElement::Text, textColor,
Boldness) //
->setLink(link);
} else { // is emoji
this->emplace<EmoteElement>(emoteData, EmoteElement::EmojiAll);