fix: update color of usernames & boldness of usernames on the fly (#5300)
This commit is contained in:
@@ -763,10 +763,7 @@ void MessageBuilder::addTextOrEmoji(const QString &string_)
|
||||
auto &&textColor = this->textColor_;
|
||||
if (string.startsWith('@'))
|
||||
{
|
||||
this->emplace<TextElement>(string, MessageElementFlag::BoldUsername,
|
||||
textColor, FontStyle::ChatMediumBold);
|
||||
this->emplace<TextElement>(string, MessageElementFlag::NonBoldUsername,
|
||||
textColor);
|
||||
this->emplace<MentionElement>(string, textColor, textColor);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user