fix(participant): update local name only on explicit update (#3849)

Dominant speaker events can trigger local participant updates
without a display name. Do not update the name unless there
is an explicit update in the action.
pull/3855/head jitsi-meet_3520
virtuacoplenny 6 years ago committed by GitHub
parent d0858b95b8
commit 6f57d58dd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      react/features/base/conference/middleware.js

@ -673,7 +673,7 @@ function _updateLocalParticipantInConference({ getState }, next, action) {
const { participant } = action;
const result = next(action);
if (conference && participant.local) {
if (conference && participant.local && 'name' in participant) {
conference.setDisplayName(participant.name);
}

Loading…
Cancel
Save