Added the ability to show replies for Kick + fixed issue with display pictures

This commit is contained in:
nuttylmao
2025-06-28 05:00:18 +10:00
parent 2a94b87716
commit ab5ce03866
+10 -10
View File
@@ -1871,16 +1871,16 @@ async function KickChatMessage(data) {
// return; // return;
// } // }
// // Set Reply Message // Set Reply Message
// const isReply = data.isReply; const isReply = data.isReply;
// if (isReply && showMessage) { if (isReply && showMessage) {
// const replyUser = data.message.reply.userName; const replyUser = data["reply.userName"];
// const replyMsg = data.message.reply.msgBody; const replyMsg = data["reply.message"];
// replyDiv.style.display = 'block'; replyDiv.style.display = 'block';
// replyUserDiv.innerText = replyUser; replyUserDiv.innerText = replyUser;
// replyMsgDiv.innerText = replyMsg; replyMsgDiv.innerHTML = replaceEmotes(replyMsg);;
// } }
// Set timestamp // Set timestamp
if (showTimestamps) { if (showTimestamps) {
@@ -2025,7 +2025,7 @@ async function KickChatMessage(data) {
// Render avatars // Render avatars
if (showAvatar) { if (showAvatar) {
const username = data.username; const username = data.user;
const avatarURL = await GetAvatar(username, 'kick'); const avatarURL = await GetAvatar(username, 'kick');
const avatar = new Image(); const avatar = new Image();
avatar.src = avatarURL; avatar.src = avatarURL;