Address review

This commit is contained in:
Horatiu Muresan 2022-08-30 10:04:12 +03:00
parent 19d94cc5c0
commit 5b60832e27
1 changed files with 3 additions and 3 deletions

View File

@ -41,7 +41,8 @@ import {
isLocalParticipantModerator,
hasRaisedHand,
grantModerator,
overwriteParticipantsNames
overwriteParticipantsNames,
LOCAL_PARTICIPANT_DEFAULT_ID
} from '../../react/features/base/participants';
import { updateSettings } from '../../react/features/base/settings';
import { getDisplayName } from '../../react/features/base/settings/functions.web';
@ -1475,13 +1476,12 @@ class API {
*/
notifyPrejoinLoaded() {
const state = APP.store.getState();
const localParticipant = getLocalParticipant(state);
const { defaultLocalDisplayName } = state['features/base/config'];
const displayName = getDisplayName(state);
this._sendEvent({
name: 'prejoin-screen-loaded',
id: localParticipant.id, // the id is 'local' when in prejoin.
id: LOCAL_PARTICIPANT_DEFAULT_ID,
displayName,
formattedDisplayName: appendSuffix(displayName, defaultLocalDisplayName)
});