From ffded8d82ad4e5ce7a030fb7ac941d9d26627e35 Mon Sep 17 00:00:00 2001 From: drimovecz <47184817+drimovecz@users.noreply.github.com> Date: Wed, 13 Nov 2019 17:37:09 +0200 Subject: [PATCH] Drimovecz/speakerstats (#4851) * Correctly process speaker stats events when the conference contains a subdomain --- resources/prosody-plugins/mod_speakerstats_component.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/prosody-plugins/mod_speakerstats_component.lua b/resources/prosody-plugins/mod_speakerstats_component.lua index 78d06d11b..4cfae6132 100644 --- a/resources/prosody-plugins/mod_speakerstats_component.lua +++ b/resources/prosody-plugins/mod_speakerstats_component.lua @@ -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);