fix(toolbar): exercise conference audio toggling

The redux flows do not account for as many scenarios, such
as config.startWithAudioMuted being true.
This commit is contained in:
Leonard Kim 2018-03-28 10:44:02 -07:00 committed by hristoterezov
parent b4eae56eed
commit 6916252ce1
1 changed files with 14 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import UIEvents from '../../../../../service/UI/UIEvents';
import {
ACTION_SHORTCUT_TRIGGERED,
AUDIO_MUTE,
@ -122,6 +123,19 @@ export class AudioMuteButton extends AbstractAudioMuteButton {
_doToggleAudio: () => void;
/**
* Emits an event to signal audio mute should be toggled.
*
* @private
* @returns {void}
*/
_doToggleAudio() {
// The old conference logic must be used for now as the redux flows do
// not handle all cases, such as unmuting when the config
// startWithAudioMuted is true.
APP.UI.emitEvent(UIEvents.AUDIO_MUTED, !this.props._audioMuted, true);
}
_onShortcutToggleAudio: () => void;
/**