瀏覽代碼

fix: Fix av moderation enable-disable sequence.

When you enable and then disable av-moderation just the audio moderation is disabled and video moderation disabling is not signalled to moderated clients.
master
Дамян Минков 3 年之前
父節點
當前提交
72d4aa7dd5
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      resources/prosody-plugins/mod_av_moderation_component.lua

+ 1
- 0
resources/prosody-plugins/mod_av_moderation_component.lua 查看文件

@@ -136,6 +136,7 @@ function on_message(event)
136 136
                         room.av_moderation = {};
137 137
                         room.av_moderation_actors = {};
138 138
                     end
139
+                    room.av_moderation[mediaType] = {};
139 140
                     room.av_moderation_actors[mediaType] = occupant.nick;
140 141
                 end
141 142
             else

Loading…
取消
儲存