Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HagerDakroury committed Jul 17, 2021
1 parent e1791ea commit 8e39fcd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion analysis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ io.on("connection", (socket: any) => {
var meeting = data.meeting;
var student = data.username;

socket.join(data.meeting + data.username);
if (student) {
socket.join(data.meeting + data.username);
}
socket.join(data.meeting);
socket.meeting = data.meeting;
socket.username = data.username;

Expand Down

0 comments on commit 8e39fcd

Please sign in to comment.