rn: fix video unmuting when disabling audio-only

When the video unmute button disabled audio-only, also unmute video. This fixes
a weird case in which the user need to "unmute twice" if they were muted beofre
they enabled audio-only mode. That's ok if the audio-only button was used, but
not if the video-unmute button was used, since the expectation is to have video,
of course.
This commit is contained in:
Saúl Ibarra Corretgé 2019-06-12 17:25:46 +02:00 committed by Saúl Ibarra Corretgé
parent e33b334307
commit f85ac3ef91
1 changed files with 6 additions and 6 deletions

View File

@ -135,14 +135,14 @@ class VideoMuteButton extends AbstractVideoMuteButton<Props, *> {
if (this.props._audioOnly) { if (this.props._audioOnly) {
this.props.dispatch( this.props.dispatch(
setAudioOnly(false, /* ensureTrack */ true)); setAudioOnly(false, /* ensureTrack */ true));
} else {
this.props.dispatch(
setVideoMuted(
videoMuted,
VIDEO_MUTISM_AUTHORITY.USER,
/* ensureTrack */ true));
} }
this.props.dispatch(
setVideoMuted(
videoMuted,
VIDEO_MUTISM_AUTHORITY.USER,
/* ensureTrack */ true));
// FIXME: The old conference logic still relies on this event being // FIXME: The old conference logic still relies on this event being
// emitted. // emitted.
typeof APP === 'undefined' typeof APP === 'undefined'