diff --git a/bigbluebutton-html5/imports/ui/services/audio-manager/index.js b/bigbluebutton-html5/imports/ui/services/audio-manager/index.js index 0bcf2965bbe61ab389058f37aa9f5ca1c7fdd3a1..d7fb5f563d9b41e3b046d62e5bef22e064b01d24 100755 --- a/bigbluebutton-html5/imports/ui/services/audio-manager/index.js +++ b/bigbluebutton-html5/imports/ui/services/audio-manager/index.js @@ -409,15 +409,13 @@ class AudioManager { return this._userData; } - notify(message, error = false, icon) { - let _icon = 'unmute'; - _icon = icon || _icon; - _icon = this.isListenOnly ? 'listen' : _icon; + notify(message, error = false, icon = 'unmute') { + const audioIcon = this.isListenOnly ? 'listen' : icon; notify( message, error ? 'error' : 'info', - _icon, + audioIcon, ); } }