Drimovecz/speakerstats (#4851)

* Correctly process speaker stats events when the conference contains a subdomain
This commit is contained in:
drimovecz 2019-11-13 17:37:09 +02:00 committed by Дамян Минков
parent 00b57c7983
commit ffded8d82a
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
local get_room_from_jid = module:require "util".get_room_from_jid;
local room_jid_match_rewrite = module:require "util".room_jid_match_rewrite;
local jid_resource = require "util.jid".resource;
local ext_events = module:require "ext_events"
local st = require "util.stanza";
@ -25,7 +26,7 @@ function on_message(event)
= event.stanza:get_child('speakerstats', 'http://jitsi.org/jitmeet');
if speakerStats then
local roomAddress = speakerStats.attr.room;
local room = get_room_from_jid(roomAddress);
local room = get_room_from_jid(room_jid_match_rewrite(roomAddress));
if not room then
log("warn", "No room found %s", roomAddress);