fix(external-api) Add email to local participant info

This commit is contained in:
Horatiu Muresan 2022-09-14 13:48:00 +03:00
parent 35442c6094
commit 54b29c1afd
2 changed files with 4 additions and 2 deletions

View File

@ -553,6 +553,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
this._myUserID = userID;
this._participants[userID] = {
email: data.email,
avatarURL: data.avatarURL
};
}

View File

@ -89,7 +89,7 @@ MiddlewareRegistry.register(store => next => action => {
const state = store.getState();
const { defaultLocalDisplayName } = state['features/base/config'];
const { room } = state['features/base/conference'];
const { loadableAvatarUrl, name, id } = getLocalParticipant(state);
const { loadableAvatarUrl, name, id, email } = 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
@ -104,7 +104,8 @@ MiddlewareRegistry.register(store => next => action => {
defaultLocalDisplayName
),
avatarURL: loadableAvatarUrl,
breakoutRoom
breakoutRoom,
email
}
);
break;