Skip to content

Commit

Permalink
fix(bttv): use channel if no user was sent (#5783)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz authored Jan 1, 2025
1 parent becc100 commit 4f1a0ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Bugfix: Fixed scrollbar highlights being visible in overlay windows. (#5769)
- Bugfix: Make macos fonts look the same as v2.5.1. (#5775)
- Bugfix: Fixed 7TV usernames messing with Qt's HTML (#5780)
- Bugfix: Fixed BTTV emotes occasionally showing the wrong author. (#5783)
- Dev: Hard-code Boost 1.86.0 in macos CI builders. (#5774)

## 2.5.2-beta.1
Expand Down
4 changes: 4 additions & 0 deletions src/providers/bttv/BttvEmotes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ CreateEmoteResult createChannelEmote(const QString &channelDisplayName,
auto name = EmoteName{jsonEmote.value("code").toString()};
auto author = EmoteAuthor{
jsonEmote.value("user").toObject().value("displayName").toString()};
if (author.string.isEmpty())
{
author.string = jsonEmote["channel"].toString();
}

auto emote = Emote({
name,
Expand Down

0 comments on commit 4f1a0ad

Please sign in to comment.