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:
parent
d0858b95b8
commit
6f57d58dd9
|
@ -673,7 +673,7 @@ function _updateLocalParticipantInConference({ getState }, next, action) {
|
||||||
const { participant } = action;
|
const { participant } = action;
|
||||||
const result = next(action);
|
const result = next(action);
|
||||||
|
|
||||||
if (conference && participant.local) {
|
if (conference && participant.local && 'name' in participant) {
|
||||||
conference.setDisplayName(participant.name);
|
conference.setDisplayName(participant.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue