소스 검색

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

j8
damencho 3 년 전
부모
커밋
80e2c05219
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1
    2
      resources/prosody-plugins/mod_av_moderation_component.lua

+ 1
- 2
resources/prosody-plugins/mod_av_moderation_component.lua 파일 보기

@@ -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…
취소
저장