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);