fix(screenshare) use selector for getting screenshare owner display name (#11478)

pull/11484/head jitsi-meet_7277
William Liang 3 years ago committed by GitHub
parent 42632bd5fd
commit f2c3740108
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      react/features/base/participants/functions.js

@ -298,10 +298,9 @@ export function getParticipantDisplayName(stateful: Object | Function, id: strin
* @returns {string}
*/
export function getScreenshareParticipantDisplayName(stateful: Object | Function, id: string) {
const owner = getParticipantById(stateful, getVirtualScreenshareParticipantOwnerId(id));
const name = owner.name;
const ownerDisplayName = getParticipantDisplayName(stateful, getVirtualScreenshareParticipantOwnerId(id));
return i18next.t('screenshareDisplayName', { name });
return i18next.t('screenshareDisplayName', { name: ownerDisplayName });
}
/**

Loading…
Cancel
Save