Kaynağa Gözat

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 yıl önce
ebeveyn
işleme
088fe87e31
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3
    0
      conference.js

+ 3
- 0
conference.js Dosyayı Görüntüle

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

Loading…
İptal
Kaydet