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:
parent
b4eae56eed
commit
6916252ce1
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue