forked from snxraven/LinkUp-P2P-Chat
Auto Join Guild on Create
This commit is contained in:
parent
f125cad87c
commit
7c874fab21
3
app.js
3
app.js
@ -172,9 +172,10 @@ async function initialize() {
|
||||
hljs.highlightAll();
|
||||
});
|
||||
|
||||
document.addEventListener('createGuild', (event) => {
|
||||
document.addEventListener('createGuild', async (event) => {
|
||||
const { guildName } = event.detail;
|
||||
createGuild(guildName);
|
||||
await joinAllGuilds(); // Ensure the app joins all guilds on startup
|
||||
});
|
||||
|
||||
document.addEventListener('addRoomToGuild', (event) => {
|
||||
|
Loading…
Reference in New Issue
Block a user