feat(external-api) notify conference joined with room type flag

pull/10907/head jitsi-meet_6899
Mihaela Dumitru 3 years ago committed by Horatiu Muresan
parent debb63d3d6
commit 63a4b106ac
  1. 4
      modules/API/API.js
  2. 5
      react/features/external-api/middleware.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) {

@ -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;

Loading…
Cancel
Save