fix video bug

This commit is contained in:
MathMan05 2025-05-17 17:00:55 -05:00
parent c7a96eea92
commit de55ee96b8

View file

@ -1128,15 +1128,14 @@ class Channel extends SnowFlake {
const box = this.boxMap.get(id); const box = this.boxMap.get(id);
if (!this.voice) return; if (!this.voice) return;
if (box) { if (box) {
console.warn("purge:" + id);
const vid = this.voice.videos.get(id); const vid = this.voice.videos.get(id);
if (vid) { if (vid && change.video) {
if (change.video) {
this.boxVid(id, vid); this.boxVid(id, vid);
} else { } else if (!change.video) {
this.purgeVid(id); this.purgeVid(id);
} }
} }
}
const tray = this.voiceTray.get(id); const tray = this.voiceTray.get(id);
if (tray) { if (tray) {
console.warn("tray build", tray, change); console.warn("tray build", tray, change);