Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix: Fix speakerstats reports.
Дамян Минков4075e5deb748
diff --git a/resources/prosody-plugins/mod_speakerstats_component.lua b/resources/prosody-plugins/mod_speakerstats_component.luaindex 0c7a8c7ac1..26df7647da 100644--- a/resources/prosody-plugins/mod_speakerstats_component.lua+++ b/resources/prosody-plugins/mod_speakerstats_component.lua@@ -166,21 +166,19 @@ function occupant_joined(event)endend- if next(users_json) == nil then- return;+ if next(users_json) ~= nil then+ local body_json = {};+ body_json.type = 'speakerstats';+ body_json.users = users_json;++ local stanza = st.message({+ from = module.host;+ to = occupant.jid; })+ :tag("json-message", {xmlns='http://jitsi.org/jitmeet'})+ :text(json.encode(body_json)):up();++ room:route_stanza(stanza);end-- local body_json = {};- body_json.type = 'speakerstats';- body_json.users = users_json;-- local stanza = st.message({- from = module.host;- to = occupant.jid; })- :tag("json-message", {xmlns='http://jitsi.org/jitmeet'})- :text(json.encode(body_json)):up();-- room:route_stanza(stanza);endlocal context_user = event.origin and event.origin.jitsi_meet_context_user or nil;