mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-18 19:50:58 -04:00
Fixed Twitch Watch Streaks showing incorrectly
This commit is contained in:
@@ -1236,7 +1236,7 @@ async function TwitchWatchStreak(data) {
|
||||
|
||||
if (showAvatar) {
|
||||
// Render avatars
|
||||
const username = data.userName;
|
||||
const username = data.user.login;
|
||||
const avatarURL = await GetAvatar(username, 'twitch');
|
||||
const avatar = new Image();
|
||||
avatar.src = avatarURL;
|
||||
@@ -1250,7 +1250,7 @@ async function TwitchWatchStreak(data) {
|
||||
const message = RenderMessageWithEmotesHTML(data.message, data.emotes);
|
||||
|
||||
titleDiv.innerText = `${displayName} is currently on a ${watchStreak} stream streak! `;
|
||||
contentDiv.innerHTML = message;
|
||||
contentDiv.innerHTML = ConstructMessageFromParts(data.parts);
|
||||
|
||||
AddMessageItem(instance, data.messageId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user