Fixed bug where voice replays even though the client is muted

canary
WolverinDEV 2020-12-03 12:10:44 +01:00
parent 6221cd9028
commit afc107391f
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@ export class RtpVoiceConnection extends AbstractVoiceConnection {
const client = new RtpVoiceClient(clientId);
this.voiceClients[clientId] = client;
this.voiceClients[clientId].setGloballyMuted(this.speakerMuted);
client.events.on("notify_state_changed", this.voiceClientStateChangedEventListener);
return client;
}