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.
This commit is contained in:
virtuacoplenny 2019-01-31 15:46:34 -08:00 committed by GitHub
parent d0858b95b8
commit 6f57d58dd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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