updates bosh to support optional prefix

use optional prefix in poltergeist room lookup
This commit is contained in:
Aaron van Meerten 2019-05-16 14:23:36 -05:00
parent d86b60ea72
commit 8d1d573266
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;