A small update

canary
WolverinDEV 2018-08-12 12:03:01 +02:00
parent e2a5ff8f8d
commit aa6ab3e5bf
1 changed files with 3 additions and 4 deletions

View File

@ -147,8 +147,7 @@ class ControlBar {
}
updateVoice(targetChannel?: ChannelEntry) {
if(!targetChannel)
targetChannel = this.handle.getClient().currentChannel();
if(!targetChannel) targetChannel = this.handle.getClient().currentChannel();
let voiceSupport = this.handle.voiceConnection.codecSupported(targetChannel.properties.channel_codec);
this._codecNotSupported = !voiceSupport;
@ -156,8 +155,8 @@ class ControlBar {
this.htmlTag.find(".btn_mute_input").prop("disabled", !this._codecNotSupported && voice_support);
this.htmlTag.find(".btn_mute_output").prop("disabled", !this._codecNotSupported && voice_support);
this.handle.serverConnection.sendCommand("clientupdate", {
client_input_hardware: this._codecNotSupported && voice_support,
client_output_hardware: this._codecNotSupported && voice_support
client_input_hardware: voiceSupport,
client_output_hardware: voiceSupport
});
if(this._codecNotSupported)