From 72d4aa7dd56ad5a99d85371d2129e3f12be5aa58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=8F=D0=BD=20=D0=9C=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Wed, 4 Aug 2021 09:58:44 -0500 Subject: [PATCH] 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. --- resources/prosody-plugins/mod_av_moderation_component.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/prosody-plugins/mod_av_moderation_component.lua b/resources/prosody-plugins/mod_av_moderation_component.lua index 0f7b769da..7da59a0da 100644 --- a/resources/prosody-plugins/mod_av_moderation_component.lua +++ b/resources/prosody-plugins/mod_av_moderation_component.lua @@ -136,6 +136,7 @@ function on_message(event) room.av_moderation = {}; room.av_moderation_actors = {}; end + room.av_moderation[mediaType] = {}; room.av_moderation_actors[mediaType] = occupant.nick; end else