Fixed whisper commands for old TeaSpeak servers
This commit is contained in:
parent
ee0fee5cf7
commit
0ce7da1e4f
1 changed files with 2 additions and 2 deletions
|
@ -500,7 +500,7 @@ export class VoiceConnection extends AbstractVoiceConnection {
|
||||||
|
|
||||||
private async doStartWhisper(target: CancelableWhisperTarget) {
|
private async doStartWhisper(target: CancelableWhisperTarget) {
|
||||||
if(target.target === "echo") {
|
if(target.target === "echo") {
|
||||||
await this.connection.send_command("setwhispersession", {
|
await this.connection.send_command("setwhispertarget", {
|
||||||
type: 0x10, /* self */
|
type: 0x10, /* self */
|
||||||
target: 0,
|
target: 0,
|
||||||
id: 0
|
id: 0
|
||||||
|
@ -528,7 +528,7 @@ export class VoiceConnection extends AbstractVoiceConnection {
|
||||||
if(this.whisperTarget) {
|
if(this.whisperTarget) {
|
||||||
this.whisperTarget.canceled = true;
|
this.whisperTarget.canceled = true;
|
||||||
this.whisperTargetInitialize = undefined;
|
this.whisperTargetInitialize = undefined;
|
||||||
this.connection.send_command("clearwhispersession").catch(error => {
|
this.connection.send_command("clearwhispertarget").catch(error => {
|
||||||
logWarn(LogCategory.CLIENT, tr("Failed to clear the whisper target: %o"), error);
|
logWarn(LogCategory.CLIENT, tr("Failed to clear the whisper target: %o"), error);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue