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;
// }
// // Set Reply Message
// const isReply = data.isReply;
// if (isReply && showMessage) {
// const replyUser = data.message.reply.userName;
// const replyMsg = data.message.reply.msgBody;
// Set Reply Message
const isReply = data.isReply;
if (isReply && showMessage) {
const replyUser = data["reply.userName"];
const replyMsg = data["reply.message"];
// replyDiv.style.display = 'block';
// replyUserDiv.innerText = replyUser;
// replyMsgDiv.innerText = replyMsg;
// }
replyDiv.style.display = 'block';
replyUserDiv.innerText = replyUser;
replyMsgDiv.innerHTML = replaceEmotes(replyMsg);;
}
// Set timestamp
if (showTimestamps) {
@@ -2025,7 +2025,7 @@ async function KickChatMessage(data) {
// Render avatars
if (showAvatar) {
const username = data.username;
const username = data.user;
const avatarURL = await GetAvatar(username, 'kick');
const avatar = new Image();
avatar.src = avatarURL;