We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce6dc3b commit 7bee29aCopy full SHA for 7bee29a
src/webpage/voice.ts
@@ -89,7 +89,7 @@ class VoiceFactory {
89
voiceStateUpdate(update: voiceStatus) {
90
const prev = this.userMap.get(update.user_id);
91
console.log(prev, this.userMap);
92
- if (prev && update.channel_id !== this.curChan) {
+ if (prev && prev !== this.voiceChannels.get(update.channel_id)) {
93
prev.disconnect(update.user_id);
94
this.onLeave(prev);
95
}
0 commit comments