change render condition and move event to switch

This commit is contained in:
KDSBrowne 2017-01-26 08:25:28 -08:00
parent 61de5fe393
commit dbddb304cf
2 changed files with 3 additions and 3 deletions

View File

@ -106,11 +106,11 @@ function joinVoiceCallSIP(options) {
turn: m.turns,
};
let audioFailed = new CustomEvent('bbb.webrtc.failed', { status: 'Failed' });
callIntoConference(extension, function (audio) {
switch (audio.status) {
case 'failed':
let audioFailed = new CustomEvent('bbb.webrtc.failed', {
status: 'Failed' });
window.dispatchEvent(audioFailed);
break;
}

View File

@ -33,7 +33,7 @@ export default class AudioNotification extends Component {
render() {
const { color, message } = this.props;
if(!color && !message || this.state.notification === 'closed'){
if(!color || !message || this.state.notification === 'closed'){
return null;
}else{
return (