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;
|
// 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;
|
||||||
|
|||||||
Reference in New Issue
Block a user