[mirotalksfu] - fix global lobby

هذا الالتزام موجود في:
Miroslav Pejic
2025-09-10 19:46:16 +02:00
الأصل 08f8229fb6
التزام 831e80ac67
6 ملفات معدلة مع 40 إضافات و9 حذوفات

عرض الملف

@@ -64,7 +64,7 @@ dev dependencies: {
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.9.59
* @version 1.9.60
*
*/
@@ -1923,7 +1923,7 @@ function startServer() {
return cb('isLocked');
}
if ((room.isLobbyEnabled() || room.isGlobalLobbyEnabled()) && !isPresenter) {
if (room.isLobbyEnabled() && !isPresenter) {
log.debug(
'The user is currently waiting to join the room because the lobby is enabled, and they are not a presenter'
);
@@ -1935,6 +1935,11 @@ function startServer() {
return cb('isLobby');
}
if (room.isGlobalLobbyEnabled() && !isPresenter) {
log.debug('The user is currently waiting to join the room because the global lobby is enabled');
return cb('isGlobalLobby');
}
if ((hostCfg.protected || hostCfg.user_auth) && isPresenter && !hostCfg.users_from_db) {
const roomAllowedForUser = isRoomAllowedForUser('[Join]', peer_name, room.id);
if (!roomAllowedForUser) {