# HG changeset patch
# User JC Brand <jc@opkode.com>
# Date 1587136757 -7200
# Node ID d1bc50890343c4c11c4fa345b228fafaab0f1ede
# Parent  df6227e288e57c7da6f178be25f92cd520caf9bb
muc_defaults: Add support for the presence_broadcast setting

diff -r df6227e288e5 -r d1bc50890343 mod_muc_defaults/mod_muc_defaults.lua
--- a/mod_muc_defaults/mod_muc_defaults.lua	Mon Apr 13 21:53:01 2020 +0200
+++ b/mod_muc_defaults/mod_muc_defaults.lua	Fri Apr 17 17:19:17 2020 +0200
@@ -50,6 +50,9 @@
 	if config.persistent ~= nil then
 		should_save = room:set_persistent(config.persistent) or should_save;
 	end
+	if config.presence_broadcast ~= nil then
+		should_save = room:set_presence_broadcast(config.presence_broadcast) or should_save;
+	end
 	if config.public ~= nil then
 		should_save = room:set_hidden(not config.public) or should_save;
 	end