Sfoglia il codice sorgente

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.
master
virtuacoplenny 6 anni fa
parent
commit
6f57d58dd9
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      react/features/base/conference/middleware.js

+ 1
- 1
react/features/base/conference/middleware.js Vedi File

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

Loading…
Annulla
Salva