mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-19 04:00:59 -04:00
Added the ability to show replies for Kick + fixed issue with display pictures
This commit is contained in:
+10
-10
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user