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(visitors): Updates meeting id for visitor rooms.
damencho9363b794547c
diff --git a/resources/prosody-plugins/mod_muc_meeting_id.lua b/resources/prosody-plugins/mod_muc_meeting_id.luaindex e9e9fca11d..02eb75bda6 100644--- a/resources/prosody-plugins/mod_muc_meeting_id.lua+++ b/resources/prosody-plugins/mod_muc_meeting_id.lua@@ -4,6 +4,11 @@ local main_util = module:require "util";local ends_with = main_util.ends_with;local is_healthcheck_room = main_util.is_healthcheck_room;+local um_is_admin = require 'core.usermanager'.is_admin;+local function is_admin(jid)+ return um_is_admin(jid, module.host);+end+local QUEUE_MAX_SIZE = 100;-- Module that generates a unique meetingId, attaches it to the room@@ -51,6 +56,15 @@ end, 99);module:hook("muc-config-submitted/muc#roomconfig_presencebroadcast", function()return true;end, 99);+module:hook("muc-config-submitted/muc#roominfo_meetingId", function(event)+ -- we allow jicofo to overwrite the meetingId+ if is_admin(event.actor) then+ event.room._data.meetingId = event.value;+ return;+ end++ return true;+end, 99);--- Avoids any participant joining the room in the interval between creating the room--- and jicofo entering the room