Auto Join Guild on Create

This commit is contained in:
Raven Scott 2024-07-08 00:57:58 -04:00
parent f125cad87c
commit 7c874fab21

3
app.js
View File

@ -172,9 +172,10 @@ async function initialize() {
hljs.highlightAll(); hljs.highlightAll();
}); });
document.addEventListener('createGuild', (event) => { document.addEventListener('createGuild', async (event) => {
const { guildName } = event.detail; const { guildName } = event.detail;
createGuild(guildName); createGuild(guildName);
await joinAllGuilds(); // Ensure the app joins all guilds on startup
}); });
document.addEventListener('addRoomToGuild', (event) => { document.addEventListener('addRoomToGuild', (event) => {