Fix usercards showing all messages in IRC channels (#2979)

This commit is contained in:
Mm2PL 2021-07-08 17:26:34 +02:00 committed by GitHub
parent e041506dbd
commit 24aee42171
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -10,6 +10,7 @@
- Bugfix: Middle mouse click no longer scrolls in not fully populated usercards and splits. (#2933)
- Bugfix: Fix bad behavior of the HTML color picker edit when user input is being entered. (#2942)
- Bugfix: Fixed founder badge not being respected by `author.subbed` filter. (#2971)
- Bugfix: Usercards on IRC will now only show user's messages. (#1780, #2979)
## 2.3.3

View file

@ -74,6 +74,7 @@ void IrcMessageBuilder::appendUsername()
QString username = this->userName;
this->message().loginName = username;
this->message().displayName = username;
// The full string that will be rendered in the chat widget
QString usernameText = username;
@ -85,7 +86,7 @@ void IrcMessageBuilder::appendUsername()
this->emplace<TextElement>(usernameText, MessageElementFlag::Username,
this->usernameColor_, FontStyle::ChatMediumBold)
->setLink({Link::UserInfo, this->message().displayName});
->setLink({Link::UserInfo, this->message().loginName});
}
} // namespace chatterino