Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
72d4aa7dd5

+ 1
- 0
resources/prosody-plugins/mod_av_moderation_component.lua Parādīt failu

@@ -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

Notiek ielāde…
Atcelt
Saglabāt