Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

updates bosh to support optional prefix use optional prefix in poltergeist room lookup

Aaron van Meerten8d1d57326672
diff --git a/resources/prosody-plugins/mod_auth_token.lua b/resources/prosody-plugins/mod_auth_token.lua
index d83fde6ada..fb0df1a6e4 100644
--- a/resources/prosody-plugins/mod_auth_token.lua
+++ b/resources/prosody-plugins/mod_auth_token.lua
@@ -26,8 +26,9 @@ module:hook("bosh-session", function(event)
local params = formdecode(query);
session.auth_token = query and params.token or nil;
- -- The room name from the bosh query
+ -- The room name and optional prefix from the bosh query
session.jitsi_bosh_query_room = params.room;
+ session.jitsi_bosh_query_prefix = params.prefix or "";
end
end);
diff --git a/resources/prosody-plugins/mod_muc_poltergeist.lua b/resources/prosody-plugins/mod_muc_poltergeist.lua
index 6823b5f6b5..e3956a3299 100644
--- a/resources/prosody-plugins/mod_muc_poltergeist.lua
+++ b/resources/prosody-plugins/mod_muc_poltergeist.lua
@@ -100,7 +100,7 @@ prosody.events.add_handler("pre-jitsi-authentication", function(session)
if (session.jitsi_meet_context_user) then
local room = get_room(
session.jitsi_bosh_query_room,
- session.jitsi_meet_domain);
+ session.jitsi_bosh_query_prefix);
if (not room) then
return nil;