From 31a38d19a7dd54ce390d28e63541decee54faae2 Mon Sep 17 00:00:00 2001 From: apa420 Date: Wed, 4 Jul 2018 13:50:26 +0200 Subject: [PATCH] Fixed code, things that fourtf asked for --- src/providers/twitch/TwitchMessageBuilder.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/providers/twitch/TwitchMessageBuilder.cpp b/src/providers/twitch/TwitchMessageBuilder.cpp index cb2f44ad4..7ae478c16 100644 --- a/src/providers/twitch/TwitchMessageBuilder.cpp +++ b/src/providers/twitch/TwitchMessageBuilder.cpp @@ -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(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(string, MessageElement::Text, textColor) // + this->emplace(string, MessageElement::Text, textColor, + Boldness) // ->setLink(link); } else { // is emoji this->emplace(emoteData, EmoteElement::EmojiAll);