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

This commit is contained in:
Mihaela Dumitru 2022-02-02 13:28:07 +02:00 committed by Horatiu Muresan
parent debb63d3d6
commit 63a4b106ac
2 changed files with 6 additions and 3 deletions

View File

@ -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) {

View File

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