removed access to theme from TMB + misc fixes (#2694)

Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
fourtf
2021-06-20 15:55:35 +02:00
committed by GitHub
parent 0c2488505c
commit 1efc547aa5
6 changed files with 16 additions and 17 deletions
+6 -2
View File
@@ -107,6 +107,11 @@ void SharedMessageBuilder::parse()
{
this->parseUsernameColor();
if (this->action_)
{
this->textColor_ = this->usernameColor_;
}
this->parseUsername();
this->message().flags.set(MessageFlag::Collapsed);
@@ -408,8 +413,7 @@ void SharedMessageBuilder::addTextOrEmoji(const QString &string_)
// Actually just text
auto linkString = this->matchLink(string);
auto link = Link();
auto textColor = this->action_ ? MessageColor(this->usernameColor_)
: MessageColor(MessageColor::Text);
auto &&textColor = this->textColor_;
if (linkString.isEmpty())
{