From c280c0e16f1948f79b12a8c81bdca125a3bd17b6 Mon Sep 17 00:00:00 2001 From: damencho Date: Mon, 4 Nov 2024 21:03:35 -0600 Subject: [PATCH] fix(breakout): Clear up request sent on authentication. If guest authenticates in meeting to become a moderator and creates a breakout room, was not inviting jicofo and fails to join breakout room. Fixes jitsi/jitsi-meet#15024. --- authenticateAndUpgradeRole.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/authenticateAndUpgradeRole.js b/authenticateAndUpgradeRole.js index 037bb10346..648c7adc07 100644 --- a/authenticateAndUpgradeRole.js +++ b/authenticateAndUpgradeRole.js @@ -117,7 +117,13 @@ export default function authenticateAndUpgradeRole({ // stored in the settings. Send a new conference IQ. this.room.xmpp.moderator.sendConferenceRequest(this.room.roomjid) .catch(e => logger.trace('sendConferenceRequest rejected', e)) - .finally(resolve); + .finally(() => { + // we need to reset it because of breakout rooms which will + // reuse connection but will invite jicofo + this.room.xmpp.moderator.conferenceRequestSent = false; + + resolve(); + }); }) .catch(({ error, message }) => { xmpp.disconnect();