fix: Fixes av moderation logic when granting moderator.
This commit is contained in:
parent
eff1d13d21
commit
737d542ca8
|
@ -64,9 +64,15 @@ function notify_whitelist_change(jid, moderators, room, mediaType)
|
|||
if moderators and occupant.role == 'moderator' then
|
||||
send_json_message(occupant.jid, moderators_body_json_str);
|
||||
elseif occupant.jid == jid then
|
||||
-- if the occupant is not moderator we send him that it is approved
|
||||
-- if it is moderator we update him with the list, this is moderator joining or grant moderation was executed
|
||||
if occupant.role == 'moderator' then
|
||||
send_json_message(occupant.jid, moderators_body_json_str);
|
||||
else
|
||||
send_json_message(occupant.jid, participant_body_json_str);
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- receives messages from clients to the component sending A/V moderation enable/disable commands or adding
|
||||
|
|
Loading…
Reference in New Issue