Skip to content

Commit 7bee29a

Browse files
committed
fix bug
1 parent ce6dc3b commit 7bee29a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webpage/voice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class VoiceFactory {
8989
voiceStateUpdate(update: voiceStatus) {
9090
const prev = this.userMap.get(update.user_id);
9191
console.log(prev, this.userMap);
92-
if (prev && update.channel_id !== this.curChan) {
92+
if (prev && prev !== this.voiceChannels.get(update.channel_id)) {
9393
prev.disconnect(update.user_id);
9494
this.onLeave(prev);
9595
}

0 commit comments

Comments
 (0)