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

Without dominant speaker in redux, the wrong user will be
selected after an unpin event.
This commit is contained in:
Leonard Kim 2017-09-18 11:35:52 -07:00 committed by yanas
parent f3783efc48
commit 088fe87e31
1 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,7 @@ import {
setVideoMuted
} from './react/features/base/media';
import {
dominantSpeakerChanged,
localParticipantConnectionStatusChanged,
localParticipantRoleChanged,
MAX_DISPLAY_NAME_LENGTH,
@ -1714,6 +1715,8 @@ export default {
APP.UI.participantConnectionStatusChanged(id);
});
room.on(ConferenceEvents.DOMINANT_SPEAKER_CHANGED, (id) => {
APP.store.dispatch(dominantSpeakerChanged(id));
if (this.isLocalId(id)) {
this.isDominantSpeaker = true;
this.setRaisedHand(false);