change render condition and move event to switch
This commit is contained in:
parent
61de5fe393
commit
dbddb304cf
@ -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;
|
||||
}
|
||||
|
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user