Skip to content

Commit

Permalink
fix(breakout): Clear up request sent on authentication.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
damencho committed Nov 5, 2024
1 parent 9eefac1 commit c280c0e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion authenticateAndUpgradeRole.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c280c0e

Please sign in to comment.