Feat: Adding GUILDS! #12

Merged
snxraven merged 21 commits from guilds into main 2024-07-07 23:01:33 -04:00
Showing only changes of commit 70bc69ddea - Show all commits

2
app.js
View File

@ -1076,6 +1076,7 @@ function addAudioMessage(name, audioUrl, avatar, topic) {
const audioElement = document.createElement('audio'); const audioElement = document.createElement('audio');
audioElement.src = audioUrl; audioElement.src = audioUrl;
audioElement.controls = true; audioElement.controls = true;
audioElement.autoplay = true;
audioElement.classList.add('message-audio'); audioElement.classList.add('message-audio');
messageContent.appendChild(senderName); messageContent.appendChild(senderName);
@ -1089,6 +1090,7 @@ function addAudioMessage(name, audioUrl, avatar, topic) {
} }
} }
function addMessage(name, message, avatar, topic) { function addMessage(name, message, avatar, topic) {
const container = document.querySelector('#messages'); const container = document.querySelector('#messages');
if (!container) { if (!container) {