Browse Source

Drimovecz/speakerstats (#4851)

* Correctly process speaker stats events when the conference contains a subdomain
master
drimovecz 5 years ago
parent
commit
ffded8d82a
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      resources/prosody-plugins/mod_speakerstats_component.lua

+ 2
- 1
resources/prosody-plugins/mod_speakerstats_component.lua View File

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

Loading…
Cancel
Save