|
@@ -64,7 +64,13 @@ function notify_whitelist_change(jid, moderators, room, mediaType)
|
64
|
64
|
if moderators and occupant.role == 'moderator' then
|
65
|
65
|
send_json_message(occupant.jid, moderators_body_json_str);
|
66
|
66
|
elseif occupant.jid == jid then
|
67
|
|
- send_json_message(occupant.jid, participant_body_json_str);
|
|
67
|
+ -- if the occupant is not moderator we send him that it is approved
|
|
68
|
+ -- if it is moderator we update him with the list, this is moderator joining or grant moderation was executed
|
|
69
|
+ if occupant.role == 'moderator' then
|
|
70
|
+ send_json_message(occupant.jid, moderators_body_json_str);
|
|
71
|
+ else
|
|
72
|
+ send_json_message(occupant.jid, participant_body_json_str);
|
|
73
|
+ end
|
68
|
74
|
end
|
69
|
75
|
end
|
70
|
76
|
end
|