Skip to content

Commit

Permalink
[mirotalksfu] - fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Oct 21, 2024
1 parent 7a6dca5 commit b24a64d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
15 changes: 8 additions & 7 deletions app/src/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,9 +471,14 @@ function startServer() {
// Check if room active (exists)
app.post(['/isRoomActive'], (req, res) => {
const { roomId } = checkXSS(req.body);
const roomActive = roomList.has(roomId);
if (roomActive) log.debug('isRoomActive', { roomId, roomActive });
res.status(200).json({ message: roomActive });

if (roomId && (hostCfg.protected || hostCfg.user_auth)) {
const roomActive = roomList.has(roomId);
if (roomActive) log.debug('isRoomActive', { roomId, roomActive });
res.status(200).json({ message: roomActive });
} else {
res.status(400).json({ message: 'Unauthorized' });
}
});

// Handle Direct join room with params
Expand Down Expand Up @@ -2945,10 +2950,6 @@ function startServer() {
return payload;
}

function isRoomActive(roomId) {
return roomList.has(roomId);
}

function getActiveRooms() {
const roomIds = Array.from(roomList.keys());
const roomPeersArray = roomIds.map((roomId) => {
Expand Down
7 changes: 0 additions & 7 deletions public/css/landing.css
Original file line number Diff line number Diff line change
Expand Up @@ -2119,13 +2119,6 @@ main {
# Who are you
--------------------------------------------------------------*/

#whoAreYouDiv {
display: inline-flex;
}
#roomActiveDiv {
display: none;
}

.disabled {
pointer-events: none;
opacity: 0.5;
Expand Down

0 comments on commit b24a64d

Please sign in to comment.