Skip to content

Commit

Permalink
[mirotalksfu] - add sound locked
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jul 10, 2024
1 parent 1ae92b2 commit 660131b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/src/Server.js
Original file line number Diff line number Diff line change
Expand Up @@ -2773,7 +2773,12 @@ function startServer() {
return false;
}

if (isOIDCEnabled || !user.allowed_rooms || user.allowed_rooms.includes('*') || user.allowed_rooms.includes(room)) {
if (
isOIDCEnabled ||
!user.allowed_rooms ||
user.allowed_rooms.includes('*') ||
user.allowed_rooms.includes(room)
) {
log.debug('isRoomAllowedForUser - user room allowed', room);
return true;
}
Expand Down
2 changes: 2 additions & 0 deletions public/js/Room.js
Original file line number Diff line number Diff line change
Expand Up @@ -3536,6 +3536,8 @@ function toggleLockUnlockWhiteboard() {
setColor(whiteboardLockBtn, btnColor);

whiteboardAction(getWhiteboardAction(action));

if (wbIsLock) sound('locked');
}

function whiteboardAction(data, emit = true) {
Expand Down

0 comments on commit 660131b

Please sign in to comment.