Browse Source

fix(dominant-speaker): update dominant speaker in redux

Without dominant speaker in redux, the wrong user will be
selected after an unpin event.
j8
Leonard Kim 8 years ago
parent
commit
088fe87e31
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      conference.js

+ 3
- 0
conference.js View File

@@ -46,6 +46,7 @@ import {
46 46
     setVideoMuted
47 47
 } from './react/features/base/media';
48 48
 import {
49
+    dominantSpeakerChanged,
49 50
     localParticipantConnectionStatusChanged,
50 51
     localParticipantRoleChanged,
51 52
     MAX_DISPLAY_NAME_LENGTH,
@@ -1714,6 +1715,8 @@ export default {
1714 1715
                 APP.UI.participantConnectionStatusChanged(id);
1715 1716
         });
1716 1717
         room.on(ConferenceEvents.DOMINANT_SPEAKER_CHANGED, (id) => {
1718
+            APP.store.dispatch(dominantSpeakerChanged(id));
1719
+
1717 1720
             if (this.isLocalId(id)) {
1718 1721
                 this.isDominantSpeaker = true;
1719 1722
                 this.setRaisedHand(false);

Loading…
Cancel
Save