fix(bttv): use channel if no user was sent (#5783)

This commit is contained in:
nerix
2025-01-01 12:22:45 +01:00
committed by GitHub
parent becc1004ab
commit 4f1a0ad5a6
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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,