mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Make usernames clickable in reward redemption messages (#2953)
Co-authored-by: Paweł <zneix@zneix.eu>
This commit is contained in:
parent
3b0d62f5c5
commit
2af9284de5
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
## Unversioned
|
## 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: 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)
|
- 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)
|
- Bugfix: Now deleting cache files that weren't modified in the past 14 days. (#2947)
|
||||||
|
|
|
@ -1269,9 +1269,11 @@ void TwitchMessageBuilder::appendChannelPointRewardMessage(
|
||||||
QString redeemed = "Redeemed";
|
QString redeemed = "Redeemed";
|
||||||
if (!reward.isUserInputRequired)
|
if (!reward.isUserInputRequired)
|
||||||
{
|
{
|
||||||
builder->emplace<TextElement>(
|
builder
|
||||||
|
->emplace<TextElement>(
|
||||||
reward.user.login, MessageElementFlag::ChannelPointReward,
|
reward.user.login, MessageElementFlag::ChannelPointReward,
|
||||||
MessageColor::Text, FontStyle::ChatMediumBold);
|
MessageColor::Text, FontStyle::ChatMediumBold)
|
||||||
|
->setLink({Link::UserInfo, reward.user.login});
|
||||||
redeemed = "redeemed";
|
redeemed = "redeemed";
|
||||||
}
|
}
|
||||||
builder->emplace<TextElement>(redeemed,
|
builder->emplace<TextElement>(redeemed,
|
||||||
|
|
Loading…
Reference in a new issue