Browse Source

fix(av-moderation): Fixes sending wrong whitelist in json.

j8
damencho 3 years ago
parent
commit
80e2c05219
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      resources/prosody-plugins/mod_av_moderation_component.lua

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

136
                         room.av_moderation = {};
136
                         room.av_moderation = {};
137
                         room.av_moderation_actors = {};
137
                         room.av_moderation_actors = {};
138
                     end
138
                     end
139
-                    room.av_moderation[mediaType] = {};
140
                     room.av_moderation_actors[mediaType] = occupant.nick;
139
                     room.av_moderation_actors[mediaType] = occupant.nick;
141
                 end
140
                 end
142
             else
141
             else
143
                 enabled = false;
142
                 enabled = false;
144
-                if not room.av_moderation or not room.av_moderation[mediaType] then
143
+                if not room.av_moderation then
145
                     module:log('warn', 'Concurrent moderator enable/disable request or something is out of sync');
144
                     module:log('warn', 'Concurrent moderator enable/disable request or something is out of sync');
146
                     return true;
145
                     return true;
147
                 else
146
                 else

Loading…
Cancel
Save