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();
|
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) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user