diff --git a/resources/prosody-plugins/mod_auth_token.lua b/resources/prosody-plugins/mod_auth_token.lua index d83fde6ad..fb0df1a6e 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 6823b5f6b..e3956a329 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;