ignore unknown participant bye

This commit is contained in:
Lamp 2023-10-10 18:04:19 -05:00
parent 8bfd16a41f
commit 1af74e957d
1 changed files with 2 additions and 1 deletions

View File

@ -127,6 +127,7 @@ global.createMPPbridge = async function createMPPbridge({room, channel, uri}) {
});
gClient.prependListener("bye", async msg => {
var participant = gClient.ppl[msg.p];
if (!participant) return;
d.send(`\`${participant._id.substr(0,6)}\` ___**${sanitizeName(participant.name)}** left the room.___`);
});