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

Loading…
Cancel
Save