From 7d3fdefa3f56eff174dc987bce269adddbd7110f Mon Sep 17 00:00:00 2001 From: PhuocNTB Date: Mon, 13 Jul 2026 15:52:58 +0700 Subject: [PATCH] fix block git --- {.gitea => block_.gitea}/workflows/deploy.yml | 0 management/src/components/ProctorStreamPanels.tsx | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename {.gitea => block_.gitea}/workflows/deploy.yml (100%) diff --git a/.gitea/workflows/deploy.yml b/block_.gitea/workflows/deploy.yml similarity index 100% rename from .gitea/workflows/deploy.yml rename to block_.gitea/workflows/deploy.yml diff --git a/management/src/components/ProctorStreamPanels.tsx b/management/src/components/ProctorStreamPanels.tsx index 8794493..a0dcb5f 100644 --- a/management/src/components/ProctorStreamPanels.tsx +++ b/management/src/components/ProctorStreamPanels.tsx @@ -83,13 +83,13 @@ export const ProctorStreamPanels: React.FC = ({ try { const msg = JSON.parse(event.data); if (msg.event === 'client:pong') return; - if (msg.event === 'teacher:screenshot-stream-frame' && msg.data.studentId === studentId) { + if (msg.event === 'teacher:screenshot-stream-frame' && msg.data.studentId == studentId) { setScreenFrame(msg.data.imageBuffer); markStreaming(); - } else if (msg.event === 'teacher:webcam-stream-frame' && msg.data.studentId === studentId) { + } else if (msg.event === 'teacher:webcam-stream-frame' && msg.data.studentId == studentId) { setWebcamFrame(msg.data.imageBuffer); markStreaming(); - } else if (msg.event === 'teacher:stream-stopped' && msg.data.studentId === studentId) { + } else if (msg.event === 'teacher:stream-stopped' && msg.data.studentId == studentId) { setScreenFrame(null); setWebcamFrame(null); setStreaming(false);