Bläddra i källkod

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 år sedan
förälder
incheckning
6f57d58dd9
Inget konto är kopplat till bidragsgivarens mejladress
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      react/features/base/conference/middleware.js

+ 1
- 1
react/features/base/conference/middleware.js Visa fil

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

Laddar…
Avbryt
Spara