updates bosh to support optional prefix
use optional prefix in poltergeist room lookup
This commit is contained in:
parent
d86b60ea72
commit
8d1d573266
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue