|
|
@ -549,6 +549,7 @@ function addChatMessage(messageObject, player) {
|
|
|
|
msgSpan.setAttribute('class', 'chatMessage');
|
|
|
|
msgSpan.setAttribute('class', 'chatMessage');
|
|
|
|
msgSpan.setAttribute('msg-type', messageObject.type);
|
|
|
|
msgSpan.setAttribute('msg-type', messageObject.type);
|
|
|
|
msgSpan.setAttribute('msg-id', messageObject.id);
|
|
|
|
msgSpan.setAttribute('msg-id', messageObject.id);
|
|
|
|
|
|
|
|
|
|
|
|
if (messageObject.type === "USER")
|
|
|
|
if (messageObject.type === "USER")
|
|
|
|
msgSpan.innerHTML = `
|
|
|
|
msgSpan.innerHTML = `
|
|
|
|
<span class="chatUsername">${messageObject.author.username}:</span>
|
|
|
|
<span class="chatUsername">${messageObject.author.username}:</span>
|
|
|
@ -622,7 +623,6 @@ async function refreshChat() {
|
|
|
|
showError('Failed to refresh messages');
|
|
|
|
showError('Failed to refresh messages');
|
|
|
|
console.error(err);
|
|
|
|
console.error(err);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log('Refresh Chat');
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|