Просмотр исходного кода

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 лет назад
Родитель
Сommit
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

Загрузка…
Отмена
Сохранить