Skip to content

Commit

Permalink
Make usernames clickable in reward redemption messages (#2953)
Browse files Browse the repository at this point in the history
Co-authored-by: Paweł <[email protected]>
  • Loading branch information
talneoran and zneix authored Jul 4, 2021
1 parent 3b0d62f commit 2af9284
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 5 additions & 3 deletions src/providers/twitch/TwitchMessageBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2af9284

Please sign in to comment.