From 63a4b106acc18f076bcc765d5f30f9ec8664406d Mon Sep 17 00:00:00 2001 From: Mihaela Dumitru Date: Wed, 2 Feb 2022 13:28:07 +0200 Subject: [PATCH] feat(external-api) notify conference joined with room type flag --- modules/API/API.js | 4 ++-- react/features/external-api/middleware.js | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/API/API.js b/modules/API/API.js index cd0217511b..a6129c724f 100644 --- a/modules/API/API.js +++ b/modules/API/API.js @@ -1148,8 +1148,8 @@ class API { * * @param {string} roomName - The room name. * @param {string} id - The id of the local user. - * @param {Object} props - The display name and avatar URL of the local - * user. + * @param {Object} props - The display name, the avatar URL of the local + * user and the type of the room. * @returns {void} */ notifyConferenceJoined(roomName: string, id: string, props: Object) { diff --git a/react/features/external-api/middleware.js b/react/features/external-api/middleware.js index 8c0e454a1d..770a1534a9 100644 --- a/react/features/external-api/middleware.js +++ b/react/features/external-api/middleware.js @@ -88,7 +88,9 @@ 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); + const breakoutRoom = APP.conference.roomName.toString() !== room.toLowerCase(); // 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 @@ -101,7 +103,8 @@ MiddlewareRegistry.register(store => next => action => { name, defaultLocalDisplayName ), - avatarURL: loadableAvatarUrl + avatarURL: loadableAvatarUrl, + breakoutRoom } ); break;