Merge pull request #4229 from jitsi/poltergeist-prefix-support

updates bosh to support optional prefix
This commit is contained in:
Aaron van Meerten 2019-05-16 15:40:28 -06:00 committed by GitHub
commit 7f1df5629e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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;