Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: Fixes emitting conference left event in iframeAPI.

Дамян Минковe7bac3ad441d
diff --git a/react/features/breakout-rooms/actions.js b/react/features/breakout-rooms/actions.js
index 9cac6e6656..53f3742f08 100644
--- a/react/features/breakout-rooms/actions.js
+++ b/react/features/breakout-rooms/actions.js
@@ -233,7 +233,9 @@ export function moveToRoom(roomId?: string) {
const isVideoMuted = isLocalCameraTrackMuted(localTracks);
try {
- await APP.conference.leaveRoom(false /* doDisconnect */);
+ // all places we fire notifyConferenceLeft we pass the room name from APP.conference
+ await APP.conference.leaveRoom(false /* doDisconnect */).then(
+ () => APP.API.notifyConferenceLeft(APP.conference.roomName));
} catch (error) {
logger.warn('APP.conference.leaveRoom() rejected with:', error);
diff --git a/react/features/external-api/middleware.js b/react/features/external-api/middleware.js
index ca0e53e24a..8c0e454a1d 100644
--- a/react/features/external-api/middleware.js
+++ b/react/features/external-api/middleware.js
@@ -88,11 +88,12 @@ MiddlewareRegistry.register(store => next => action => {
case CONFERENCE_JOINED: {
const state = store.getState();
const { defaultLocalDisplayName } = state['features/base/config'];
- const { room } = state['features/base/conference'];
const { loadableAvatarUrl, name, id } = getLocalParticipant(state);
+ // we use APP.conference.roomName as we do not update state['features/base/conference'].room when
+ // moving between rooms in case of breakout rooms and it stays always with the name of the main room
APP.API.notifyConferenceJoined(
- room,
+ APP.conference.roomName,
id,
{
displayName: name,