Make usernames clickable in reward redemption messages (#2953)

Co-authored-by: Paweł <zneix@zneix.eu>
This commit is contained in:
Tal Neoran 2021-07-04 19:21:18 +03:00 committed by GitHub
parent 3b0d62f5c5
commit 2af9284de5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View file

@ -2,6 +2,7 @@
## Unversioned
- Minor: Username in channel points rewards redemption messages is now clickable. (#2673, #2953)
- Minor: Channel name in `<channel> has gone offline. Exiting host mode.` messages is now clickable. (#2922)
- Minor: Added `/openurl` command. Usage: `/openurl <URL>`. Opens the provided URL in the browser. (#2461, #2926)
- Bugfix: Now deleting cache files that weren't modified in the past 14 days. (#2947)

View file

@ -1269,9 +1269,11 @@ void TwitchMessageBuilder::appendChannelPointRewardMessage(
QString redeemed = "Redeemed";
if (!reward.isUserInputRequired)
{
builder->emplace<TextElement>(
reward.user.login, MessageElementFlag::ChannelPointReward,
MessageColor::Text, FontStyle::ChatMediumBold);
builder
->emplace<TextElement>(
reward.user.login, MessageElementFlag::ChannelPointReward,
MessageColor::Text, FontStyle::ChatMediumBold)
->setLink({Link::UserInfo, reward.user.login});
redeemed = "redeemed";
}
builder->emplace<TextElement>(redeemed,