Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat: Adds option to pass extra params (reason) when creating lobby.
damenchoc58de5c690af
diff --git a/resources/prosody-plugins/mod_muc_lobby_rooms.lua b/resources/prosody-plugins/mod_muc_lobby_rooms.luaindex f3976e3955..9511c64e1c 100644--- a/resources/prosody-plugins/mod_muc_lobby_rooms.lua+++ b/resources/prosody-plugins/mod_muc_lobby_rooms.lua@@ -403,7 +403,7 @@ process_host_module(main_muc_component_config, function(host_module, host)-- Check for display name if missing return an errorlocal displayName = stanza:get_child_text('nick', 'http://jabber.org/protocol/nick');- if not displayName or #displayName == 0 then+ if (not displayName or #displayName == 0) and not room._data.lobby_skip_display_name_check thenlocal reply = st.error_reply(stanza, 'modify', 'not-acceptable');reply.tags[1].attr.code = '406';reply:tag('displayname-required', { xmlns = 'http://jitsi.org/jitmeet', lobby = 'true' }):up():up();@@ -418,6 +418,9 @@ process_host_module(main_muc_component_config, function(host_module, host)if not affiliation or affiliation == 'none' thenlocal reply = st.error_reply(stanza, 'auth', 'registration-required');reply.tags[1].attr.code = '407';+ if room._data.lobby_extra_reason then+ reply:tag(room._data.lobby_extra_reason, { xmlns = 'http://jitsi.org/jitmeet' }):up();+ endreply:tag('lobbyroom', { xmlns = 'http://jitsi.org/jitmeet' }):text(room._data.lobbyroom):up():up();-- TODO: Drop this tag at some point (when all mobile clients and jigasi are updated), as this violates the rfc@@ -466,6 +469,8 @@ function handle_create_lobby(event)end-- Now it is safe to set the room to members onlyroom:set_members_only(true);+ room._data.lobby_extra_reason = event.reason;+ room._data.lobby_skip_display_name_check = event.skip_display_name_check;-- Trigger a presence with 104 so existing participants retrieves new muc#roomconfigroom:broadcast_message(diff --git a/resources/prosody-plugins/mod_persistent_lobby.lua b/resources/prosody-plugins/mod_persistent_lobby.luaindex b437646a6b..585790bdd5 100644--- a/resources/prosody-plugins/mod_persistent_lobby.lua+++ b/resources/prosody-plugins/mod_persistent_lobby.lua@@ -161,7 +161,7 @@ end);function handle_create_persistent_lobby(event)local room = event.room;- prosody.events.fire_event("create-lobby-room", { room = room; });+ prosody.events.fire_event("create-lobby-room", event);set_persistent_lobby(room);room:set_persistent(true);