fix: Fix speakerstats reports.
This commit is contained in:
parent
ea0d953d1c
commit
4075e5deb7
|
@ -166,10 +166,7 @@ function occupant_joined(event)
|
|||
end
|
||||
end
|
||||
|
||||
if next(users_json) == nil then
|
||||
return;
|
||||
end
|
||||
|
||||
if next(users_json) ~= nil then
|
||||
local body_json = {};
|
||||
body_json.type = 'speakerstats';
|
||||
body_json.users = users_json;
|
||||
|
@ -182,6 +179,7 @@ function occupant_joined(event)
|
|||
|
||||
room:route_stanza(stanza);
|
||||
end
|
||||
end
|
||||
|
||||
local context_user = event.origin and event.origin.jitsi_meet_context_user or nil;
|
||||
room.speakerStats[occupant.jid] = new_SpeakerStats(nick, context_user);
|
||||
|
|
Loading…
Reference in New Issue