From de55ee96b8febb7915a278de7652689ec576f438 Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sat, 17 May 2025 17:00:55 -0500 Subject: [PATCH] fix video bug --- src/webpage/channel.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/webpage/channel.ts b/src/webpage/channel.ts index f528618..c690666 100644 --- a/src/webpage/channel.ts +++ b/src/webpage/channel.ts @@ -1128,13 +1128,12 @@ class Channel extends SnowFlake { const box = this.boxMap.get(id); if (!this.voice) return; if (box) { + console.warn("purge:" + id); const vid = this.voice.videos.get(id); - if (vid) { - if (change.video) { - this.boxVid(id, vid); - } else { - this.purgeVid(id); - } + if (vid && change.video) { + this.boxVid(id, vid); + } else if (!change.video) { + this.purgeVid(id); } } const tray = this.voiceTray.get(id);